提交 b355615e authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 0c0356b8
...@@ -17,6 +17,7 @@ import com.zrqx.core.model.newbook.storage.BookStorage; ...@@ -17,6 +17,7 @@ import com.zrqx.core.model.newbook.storage.BookStorage;
import com.zrqx.core.model.newbook.stylebook.StyleBook; import com.zrqx.core.model.newbook.stylebook.StyleBook;
import com.zrqx.core.service.BaseServiceImpl; import com.zrqx.core.service.BaseServiceImpl;
import com.zrqx.core.util.ArrayUtils; import com.zrqx.core.util.ArrayUtils;
import com.zrqx.core.util.DateUtils;
import com.zrqx.core.util.PageInfo; import com.zrqx.core.util.PageInfo;
import com.zrqx.core.util.PageParam; import com.zrqx.core.util.PageParam;
import com.zrqx.core.vo.newbook.print.AuditLogListVo; import com.zrqx.core.vo.newbook.print.AuditLogListVo;
...@@ -118,10 +119,10 @@ public class BookPrintServiceImpl extends BaseServiceImpl<BookPrint, Integer> im ...@@ -118,10 +119,10 @@ public class BookPrintServiceImpl extends BaseServiceImpl<BookPrint, Integer> im
@Override @Override
public boolean saveAuditLog(SaveAuditLogForm form) throws ParseException { public boolean saveAuditLog(SaveAuditLogForm form) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
BookPrintAuditLog log = new BookPrintAuditLog(); BookPrintAuditLog log = new BookPrintAuditLog();
BeanUtils.copyProperties(form, log, "id"); BeanUtils.copyProperties(form, log, "id");
log.setDealTime(sdf.parse(form.getDealTime())); Date dealTime = DateUtils.strToDateTime(form.getDealTime(), "yyyy-MM-dd HH:mm:ss");
log.setDealTime(dealTime);
log.setBpId(form.getId()); log.setBpId(form.getId());
if (StringUtils.isBlank(form.getDealTime())) { if (StringUtils.isBlank(form.getDealTime())) {
log.setDealTime(new Date()); log.setDealTime(new Date());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论