| | |
| | | if (null!=tbAttResBase.getGuid()){ |
| | | // 更新 |
| | | i = baseMapper.updateById(tbAttResBase); |
| | | updateFinalState(tbAttResBase.getGuid(),tbAttResBase.getCheckState()); |
| | | }else { |
| | | tbAttResBase.setCreateTime(new Date()); |
| | | i = baseMapper.insert(tbAttResBase); |
| | |
| | | tbAttResSafetyMonitor, |
| | | tbAttResStagChar, |
| | | tbAttResWaterBlock, |
| | | tbAttResWaterDelivery).get(); |
| | | tbAttResWaterDelivery |
| | | ).get(); |
| | | // 数据处理 |
| | | list.addAll(tbAttResBaseInfo.get()); |
| | | list.addAll(tbAttResEngBene.get()); |
| | |
| | | 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){ |
| | |
| | | //更新 |
| | | return updateById(tbAttResBase); |
| | | } |
| | | |
| | | @Override |
| | | public void initTbData() { |
| | | initTbAttResBase(); |
| | | |
| | | initTbAttResStagChar(); |
| | | } |
| | | |
| | | /** |
| | | * 初始化填报水文特征表 |
| | | */ |
| | | private Integer initTbAttResStagChar() { |
| | | return baseMapper.initTbAttResStagChar(); |
| | | } |
| | | |
| | | /** |
| | | * 初始化水库基础信息填报表 |
| | | */ |
| | | private Integer initTbAttResBase() { |
| | | Integer i = baseMapper.initTbAttResBase(); |
| | | return i; |
| | | } |
| | | } |