提交 59021bf2 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 d95601ca
......@@ -139,7 +139,7 @@ public class EditorMaintenanceServiceImpl extends BaseServiceImpl<EditorMaintena
@Override
public boolean update(BookNumCipNew form) {
BookNumCipNew bcn = new BookNumCipNew();
bcn.setEditorId(form.getId());
bcn.setEditorId(form.getEditorId());
List<BookNumCipNew> list = bookNumCipNewMapper.select(bcn);
if (ArrayUtils.isNotEmpty(list)){
BookNumCipNew cipNew = list.get(0);
......@@ -147,11 +147,11 @@ public class EditorMaintenanceServiceImpl extends BaseServiceImpl<EditorMaintena
bookNumCipNewMapper.updateByPrimaryKeySelective(cipNew);
}else{
BeanUtils.copyProperties(form, bcn, "id");
bcn.setEditorId(form.getId());
bcn.setEditorId(form.getEditorId());
bookNumCipNewMapper.insertSelective(bcn);
}
String resultJson = JSONObject.toJSONString(form);
buildAuditLog(form.getId(), "更新字段", resultJson, DateUtils.dateTimeToStr(new Date()));
buildAuditLog(form.getEditorId(), "更新字段", resultJson, DateUtils.dateTimeToStr(new Date()));
return true;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论