| | |
| | | private int addOrUpdateByGuid(TbAttResSafetyMonitor oldAbAttResBase,TbAttResSafetyMonitor tbAttResSafetyMonitor){ |
| | | int i = 0; |
| | | if (null!=oldAbAttResBase){ |
| | | tbAttResSafetyMonitor.setGuid(oldAbAttResBase.getGuid()); |
| | | // 更新 |
| | | i = baseMapper.updateById(tbAttResSafetyMonitor); |
| | | }else { |
| | |
| | | if (newTbAttResSafetyMonitor.getCheckState()==3){ |
| | | fillName = "退回" + (null==newTbAttResSafetyMonitor.getCheckLog()?"":":" + newTbAttResSafetyMonitor.getCheckLog()); |
| | | } |
| | | if (newTbAttResSafetyMonitor.getCheckState()==4){ |
| | | fillName = "编辑"; |
| | | newTbAttResSafetyMonitor.setCheckState(oldAbAttResBase.getCheckState()); |
| | | } |
| | | |
| | | // 拼接 |
| | | String time = new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()); |