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

修改查询时间段

parent bc2996e8
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
name: "createTimeEnd", name: "createTimeEnd",
type: "date", type: "date",
label: "结束时间" label: "结束时间"
}, }
], ],
columns: [ columns: [
......
...@@ -6,7 +6,9 @@ import com.mortals.framework.exception.AppException; ...@@ -6,7 +6,9 @@ import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol; import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; 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.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -62,6 +64,16 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL ...@@ -62,6 +64,16 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
@Override @Override
@UnAuth @UnAuth
public String save(@RequestBody ErrorLogEntity entity) { 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); 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