Commit b8306021 authored by 赵啸非's avatar 赵啸非

修改查询时间段

parent bc2996e8
......@@ -20,7 +20,7 @@
name: "ErrorLogList",
components: {
drawerShow,drawerView
},
mixins: [table],
created() {
......@@ -71,10 +71,10 @@
name: "createTimeEnd",
type: "date",
label: "结束时间"
},
}
],
columns: [
{type: "index",label: "序号",align:"center",width: 50},
{label: "追踪Id", prop: "id"},
......@@ -108,4 +108,4 @@
};
}
};
</script>
\ No newline at end of file
</script>
......@@ -6,7 +6,9 @@ import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.error.model.ErrorLogQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
......@@ -62,6 +64,16 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
@Override
@UnAuth
public String save(@RequestBody ErrorLogEntity entity) {
ErrorLogQuery errorLogQuery = new ErrorLogQuery();
errorLogQuery.setAppName(entity.getAppName());
errorLogQuery.setPlatform(entity.getPlatform());
errorLogQuery.setMessage(entity.getMessage());
ErrorLogEntity errorLogEntity = this.service.selectOne(errorLogQuery, null);
if (!ObjectUtils.isEmpty(errorLogEntity)) {
entity.setId(errorLogEntity.getId());
entity.setCheckNum(errorLogEntity.getCheckNum() + 1);
entity.setUpdateTime(new Date());
}
return super.save(entity);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment