Commit f9cd1cdf authored by 刘林's avatar 刘林

fix(jg):移装变更接口修改

parent c00f329d
...@@ -52,7 +52,6 @@ public class JgUseRegistrationManage extends BaseEntity { ...@@ -52,7 +52,6 @@ public class JgUseRegistrationManage extends BaseEntity {
* 办理日期 * 办理日期
*/ */
@TableField("audit_pass_date") @TableField("audit_pass_date")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date auditPassDate; private Date auditPassDate;
/** /**
......
...@@ -970,9 +970,15 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -970,9 +970,15 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
} }
registrationManage.setCertificateStatus("已登记"); registrationManage.setCertificateStatus("已登记");
}); });
List<JSONObject> updatedRegistrationList = registrationList.stream()
.map(registrationManage -> {
JSONObject jsonObject = (JSONObject) JSON.toJSON(registrationManage);
jsonObject.put("auditPassDate", new SimpleDateFormat("yyyy-MM-dd").format(registrationManage.getAuditPassDate()));
return jsonObject;
})
.collect(Collectors.toList());
useRegistrationManageService.updateBatchById(registrationList); useRegistrationManageService.updateBatchById(registrationList);
historyJson.put("registrationList", updatedRegistrationList);
historyJson.put("registrationList", registrationList);
historyData.setChangeData(JSONObject.toJSONString(historyJson)); historyData.setChangeData(JSONObject.toJSONString(historyJson));
} }
......
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