| | |
| | | public boolean auditByGuid(TbAttResBase tbAttResBase) { |
| | | // 查询是否存在 |
| | | TbAttResBase detail = baseMapper.getDetailByGuid(tbAttResBase.getGuid()); |
| | | // 更新审核日志 |
| | | setUpdateCheckLog(detail,tbAttResBase); |
| | | // 更新操作日志 |
| | | setUpdateLog(detail,tbAttResBase); |
| | | // 更新审核日志 |
| | | setUpdateCheckLog(detail,tbAttResBase); |
| | | if (null!=detail){ |
| | | tbAttResBase.setGuid(detail.getGuid()); |
| | | } |
| | |
| | | tbAttResBase.setCheckState(0); |
| | | } |
| | | // 更新数据 |
| | | int i = baseMapper.updateByGuid(tbAttResBase); |
| | | int i = baseMapper.updateById(tbAttResBase); |
| | | if (i>0){ |
| | | return true; |
| | | } |
| | |
| | | int i = 0; |
| | | if (null!=tbAttResBase.getGuid()){ |
| | | // 更新 |
| | | i = baseMapper.updateByGuid(tbAttResBase); |
| | | i = baseMapper.updateById(tbAttResBase); |
| | | }else { |
| | | i = baseMapper.insert(tbAttResBase); |
| | | } |
| | |
| | | fillName = "审核"; |
| | | } |
| | | if (newTbAttResBase.getCheckState()==3){ |
| | | fillName = "退回" + (null==newTbAttResBase.getLog()?"":":" + newTbAttResBase.getLog()); |
| | | fillName = "退回" + (null==newTbAttResBase.getCheckLog()?"":":" + newTbAttResBase.getCheckLog()); |
| | | } |
| | | |
| | | // 拼接 |