| | |
| | | if (null!=tbAttResBase.getGuid()){ |
| | | // 更新 |
| | | i = baseMapper.updateById(tbAttResBase); |
| | | updateFinalState(tbAttResBase.getGuid(),tbAttResBase.getCheckState()); |
| | | }else { |
| | | tbAttResBase.setCreateTime(new Date()); |
| | | i = baseMapper.insert(tbAttResBase); |
| | |
| | | public Boolean updateFinalState(String resGuid, int state) { |
| | | TbAttResBase tbAttResBase = new TbAttResBase(); |
| | | tbAttResBase.setGuid(resGuid); |
| | | if (state==2){ |
| | | if (state==1 || state==2){ |
| | | // 审核通过,判断是否已全部通过审核 |
| | | Boolean flag = baseMapper.getFinalCheckStateByGuid(resGuid); |
| | | if (flag){ |