| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResStagChar); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(), 0); |
| | | } |
| | | // if (!edit) { |
| | | // tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(), 0); |
| | | // } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | } |
| | | // 驳回情况下将状态修改回0即已填写未提交状态 |
| | | if (tbAttResStagChar.getCheckState()==3){ |
| | | tbAttResStagChar.setCheckState(0); |
| | | detail.setCheckState(0); |
| | | } |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResStagChar); |
| | | int i = baseMapper.updateById(detail); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(), tbAttResStagChar.getCheckState()); |
| | |
| | | tbAttResStagChar.setGuid(oldAbAttResBase.getGuid()); |
| | | // 更新 |
| | | i = baseMapper.updateById(tbAttResStagChar); |
| | | tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(),tbAttResStagChar.getCheckState()); |
| | | }else { |
| | | tbAttResStagChar.setCreateTime(new Date()); |
| | | i = baseMapper.insert(tbAttResStagChar); |
| | |
| | | // 判断是否存在 |
| | | if (null==oldAbAttResBase){ |
| | | // 填报 |
| | | newTbAttResStagChar.setCheckLog(builder.toString()); |
| | | oldAbAttResBase.setCheckLog(builder.toString()); |
| | | }else { |
| | | StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getCheckLog()?"":oldAbAttResBase.getCheckLog()); |
| | | stringBuilder.append(builder); |
| | | // 填报 |
| | | newTbAttResStagChar.setCheckLog(stringBuilder.toString()); |
| | | oldAbAttResBase.setCheckLog(stringBuilder.toString()); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | if (newTbAttResStagChar.getCheckState()==4){ |
| | | fillName = "编辑"; |
| | | oldAbAttResBase.setCheckState(oldAbAttResBase.getCheckState()); |
| | | newTbAttResStagChar.setCheckState(oldAbAttResBase.getCheckState()); |
| | | } |
| | | |
| | |
| | | StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getLog()?"":oldAbAttResBase.getLog()); |
| | | stringBuilder.append(builder); |
| | | // 填报 |
| | | oldAbAttResBase.setLog(stringBuilder.toString()); |
| | | newTbAttResStagChar.setLog(stringBuilder.toString()); |
| | | } |
| | | } |