Commit f9cd1cdf authored by 刘林's avatar 刘林

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

parent c00f329d
......@@ -52,7 +52,6 @@ public class JgUseRegistrationManage extends BaseEntity {
* 办理日期
*/
@TableField("audit_pass_date")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date auditPassDate;
/**
......
......@@ -970,9 +970,15 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
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);
historyJson.put("registrationList", registrationList);
historyJson.put("registrationList", updatedRegistrationList);
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