Commit bbe95252 by 翁国栋

日志的倒序查询

parent 2a69bb2c
......@@ -466,6 +466,7 @@ public class InsureContorll {
.applicantEmployeeList(data.get("file_url").toString())
.policyDateStart(dtf3.parse(insureDto.getPolicyDateStart()))
.policyDateEnd(dtf3.parse(insureDto.getPolicyDateEnd()))
.createTime(new Date())
.insureStatus(3).policyId(insurePolicy.getId()).build().insert();
} catch (ParseException e) {
e.printStackTrace();
......@@ -666,6 +667,7 @@ public class InsureContorll {
.policyDateStart(dtf3.parse(insureDto.getPolicyDateStart()))
.policyDateEnd(dtf3.parse(insureDto.getPolicyDateEnd()))
.applyType(3)
.createTime(new Date())
.status("1").insureStatus(3).policyId(insurePolicy.getId()).build().insert();
} catch (ParseException e) {
e.printStackTrace();
......@@ -1121,7 +1123,11 @@ public class InsureContorll {
for (int index = 0; index < row.getPhysicalNumberOfCells(); index++) {
XSSFCell titleCell = titleRow.getCell(index);
XSSFCell cell = row.getCell(index);
cell.setCellType(CellType.STRING);
if(cell==null){
continue;
}else {
cell.setCellType(CellType.STRING);
}
switch (ExcelUtils.getString(titleCell)) {
case "申报日期":
Date createTime = null;
......@@ -1261,6 +1267,7 @@ public class InsureContorll {
insureUser.setInsureStatus(1);
insureUser.setUserId(ygglMainEmp.getId());
insureUser.setStatus("1");
insureUser.setCreateTime(new Date());
insureUser.insert();
}
InsureLog.builder().requestParam(JSONObject.toJSONString(map)).type(9).createTime(new Date()).requestType(2).returnBody(data).requestPath(policyDetailUrl)
......
......@@ -188,7 +188,7 @@
select ip.policy_no as policyNo,il.return_code as returnCode,il.return_msg as returnMsg,il.type as type,il.create_time as createTime from insure_log il
LEFT JOIN insure_policy ip on ip.id=il.policy_id
WHERE ip.org_code = #{orgCode}
order by ip.create_time desc
order by il.create_time desc
<if test="page.currentPage != null and page.totalPage != null">
limit #{page.offset}, #{page.totalPage}
</if>
......
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