| | |
| | | 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(); |
| | | |
| | | //初始化挡水建筑物 |
| | | initTbAttResWaterBlock(); |
| | | |
| | | //初始化正常溢洪道 |
| | | initTbAttResRsbNorspi(); |
| | | |
| | | //初始化泄洪洞 |
| | | initTbAttResRsbSpillway(); |
| | | |
| | | //初始化非常溢洪道 |
| | | initTbAttResRsbVerspi(); |
| | | |
| | | //初始化输水建筑物 |
| | | initTbAttResWaterDelivery(); |
| | | |
| | | //初始化电站 |
| | | initTbAttResPowerStation(); |
| | | } |
| | | |
| | | private Integer initTbAttResPowerStation() { |
| | | return baseMapper.initTbAttResPowerStation(); |
| | | } |
| | | |
| | | private Integer initTbAttResWaterDelivery() { |
| | | return baseMapper.initTbAttResWaterDelivery(); |
| | | } |
| | | |
| | | private Integer initTbAttResRsbVerspi() { |
| | | return baseMapper.initTbAttResRsbVerspi(); |
| | | } |
| | | |
| | | private Integer initTbAttResRsbSpillway() { |
| | | return baseMapper.initTbAttResRsbSpillway(); |
| | | } |
| | | |
| | | private Integer initTbAttResRsbNorspi() { |
| | | return baseMapper.initTbAttResRsbNorspi(); |
| | | } |
| | | |
| | | private Integer initTbAttResWaterBlock() { |
| | | return baseMapper.initTbAttResWaterBlock(); |
| | | } |
| | | |
| | | /** |
| | | * 初始化填报水文特征表 |
| | | */ |
| | | private Integer initTbAttResStagChar() { |
| | | return baseMapper.initTbAttResStagChar(); |
| | | } |
| | | |
| | | /** |
| | | * 初始化水库基础信息填报表 |
| | | */ |
| | | private Integer initTbAttResBase() { |
| | | Integer i = baseMapper.initTbAttResBase(); |
| | | return i; |
| | | } |
| | | } |