| | |
| | | private Date waterStorageTm; |
| | | |
| | | /** |
| | | * 最终填报状态(总状态)(0:填写中,1:审核中,2:审核通过) |
| | | * 最终填报状态(总状态)(-1:未填写 0:填写中,1:审核通过) |
| | | */ |
| | | @ApiModelProperty(value = "填报状态(0:填写中,1:审核中,2:审核通过) ") |
| | | @TableField("\"check_state\"") |
| | | @ApiModelProperty(value = "填报状态(-1:未填写 0:填写中,1:审核通过) ") |
| | | @TableField("\"final_state\"") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Integer finalState; |
| | | |
| | |
| | | private String isRsvr; |
| | | |
| | | /** |
| | | * 是否有大坝安全监测水平位移 |
| | | * 是否有大坝安全监测位移 |
| | | */ |
| | | @ApiModelProperty(value = "是否有大坝安全监测水平位移") |
| | | @ApiModelProperty(value = "是否有大坝安全监测位移") |
| | | @TableField("\"is_gnss_horizontal\"") |
| | | private String isGnssHorizontal; |
| | | |
| | | /** |
| | | * 是否有大坝安全监测垂直位移 |
| | | */ |
| | | @ApiModelProperty(value = "是否有大坝安全监测垂直位移") |
| | | @TableField("\"is_gnss_vertical\"") |
| | | private String isGnssVertical; |
| | | // |
| | | // /** |
| | | // * 是否有大坝安全监测垂直位移 |
| | | // */ |
| | | // @ApiModelProperty(value = "是否有大坝安全监测垂直位移") |
| | | // @TableField("\"is_gnss_vertical\"") |
| | | // private String isGnssVertical; |
| | | |
| | | /** |
| | | * 是否有大坝安全监测渗透压力 |
| | |
| | | private String isTermites; |
| | | |
| | | /** |
| | | * 填报状态(0:填写中,1:审核中,2:审核通过) |
| | | * 填报状态(0:未完成 2:已完成) |
| | | */ |
| | | @ApiModelProperty(value = "填报状态(0:填写中,1:审核中,2:审核通过) ") |
| | | @ApiModelProperty(value = "填报状态(0:未完成 2:已完成) ") |
| | | @TableField("\"check_state\"") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Integer checkState; |
| | | |
| | | /** |
| | | * 审核记录 |
| | | */ |
| | | @ApiModelProperty(value = "审核记录 ") |
| | | @TableField("\"check_log\"") |
| | | private String checkLog; |
| | | // |
| | | // /** |
| | | // * 审核记录 |
| | | // */ |
| | | // @ApiModelProperty(value = "审核记录 ") |
| | | // @TableField("\"check_log\"") |
| | | // private String checkLog; |
| | | |
| | | /** |
| | | * 创建时间 |
| | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 操作记录 |
| | | */ |
| | | @ApiModelProperty(value = "操作记录 ") |
| | | @TableField("\"log\"") |
| | | private String log; |
| | | // |
| | | // /** |
| | | // * 操作记录 |
| | | // */ |
| | | // @ApiModelProperty(value = "操作记录 ") |
| | | // @TableField("\"log\"") |
| | | // private String log; |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "输水道型式") |
| | | @TableField("\"aqueduct_type\"") |
| | | private Integer aqueductType; |
| | | private String aqueductType; |
| | | |
| | | /** |
| | | * 输水道长度 |
| | |
| | | List<Map<String, Object>> getTbInfo(@Param("resGuid") String resGuid, |
| | | @Param("tableNameColumn") String tableNameColumn, |
| | | @Param("tableName") String tableName); |
| | | |
| | | /** |
| | | * 查询水库基本详情,水位特征,挡水,输水,泄洪建筑物,电站,水库效益,工程运用,管理体制,安全鉴定和除险加固,信息化建设,文件夹存储位置所有状态的一个总状态 |
| | | * 规则:1.一个未填写则标记总状态为未填写 2. 只要一个填写了就标记为已填写中 3.只有所有的都审核通过了才标记为完成 |
| | | * @param guid 水库guid |
| | | * @return |
| | | */ |
| | | @DS("zt") |
| | | @InterceptorIgnore(tenantLine = "true") |
| | | Boolean getFinalCheckStateByGuid(@Param("guid")String guid); |
| | | } |
| | |
| | | <select id="getTbInfo" resultType="java.util.Map"> |
| | | SELECT ${tableNameColumn} AS name,ifnull("check_state",-1) as value FROM ${tableName} WHERE "res_guid" = #{resGuid} |
| | | </select> |
| | | |
| | | <!--查询水库基本详情,水位特征,挡水,输水,泄洪建筑物,电站,水库效益,工程运用,管理体制,安全鉴定和除险加固,信息化建设,文件夹存储位置所有状态的一个总状态--> |
| | | <select id="getFinalCheckStateByGuid" resultType="java.lang.Boolean"> |
| | | select if(sum(value)<28,false,true) from ( |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_base" WHERE "guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_eng_bene" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_infomation_project" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_mgr_sys_b" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_power_station" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_project_utilize" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_rsb_norspi" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_rsb_spillway" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_rsb_verspi" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_safety_monitor" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_stag_char" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_water_block" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_att_res_water_delivery" WHERE "res_guid" = #{guid} limit 1 )union all |
| | | (SELECT ifnull(sum("check_state"),-1) as value FROM "tb_file_storage_location" WHERE "res_guid" = #{guid} limit 1) |
| | | ) a |
| | | </select> |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> getAllWaterFillInfoByResGuid(String resGuid); |
| | | |
| | | /** |
| | | * 更新水库信息填报最终状态 |
| | | * @param resGuid 水库编码 |
| | | * @param state 状态值 |
| | | */ |
| | | Boolean updateFinalState(String resGuid, int state); |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResBase tbAttResBase) { |
| | | // 设置填报数据表的最终填报状态 |
| | | if (tbAttResBase.getCheckState()!=4) { |
| | | tbAttResBase.setFinalState(0); |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResBase detail = baseMapper.getDetailByGuid(tbAttResBase.getGuid()); |
| | | // 更新审核日志 |
| | |
| | | // 驳回情况下将状态修改回0即已填写未提交状态 |
| | | if (tbAttResBase.getCheckState()==3){ |
| | | tbAttResBase.setCheckState(0); |
| | | // 只要一个退回则设置为填写中... |
| | | tbAttResBase.setFinalState(0); |
| | | } |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResBase); |
| | | if (i>0){ |
| | | // 如果是审核通过需要判断其他报表是否都已填报并审核通过 |
| | | if (tbAttResBase.getCheckState()==2){ |
| | | Boolean flag = baseMapper.getFinalCheckStateByGuid(tbAttResBase.getGuid()); |
| | | if (flag){ |
| | | TbAttResBase tbAttResBase1 = new TbAttResBase(); |
| | | tbAttResBase1.setFinalState(1); |
| | | tbAttResBase1.setGuid(tbAttResBase.getGuid()); |
| | | updateById(tbAttResBase1); |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | // 查询水库基础填报数据 |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResBaseInfo = getTbAttResBaseInfo("tb_att_res_base",resGuid, executor); |
| | | // 查询水库其他填报数据 |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResBuildInfo = getTbInfo("tb_att_res_build_info",resGuid,executor); |
| | | // CompletableFuture<List<Map<String,Object>>> tbAttResBuildInfo = getTbInfo("tb_att_res_build_info",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResEngBene = getTbInfo("tb_att_res_eng_bene",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResInfomationProject = getTbInfo("tb_att_res_infomation_project",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResMgrSysB = getTbInfo("tb_att_res_mgr_sys_b",resGuid,executor); |
| | |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResStagChar = getTbInfo("tb_att_res_stag_char",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResWaterBlock = getTbInfo("tb_att_res_water_block",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbAttResWaterDelivery = getTbInfo("tb_att_res_water_delivery",resGuid,executor); |
| | | CompletableFuture<List<Map<String,Object>>> tbFileStorageLocation = getTbInfo("tb_file_storage_location",resGuid,executor); |
| | | //等待所有任务执行完成 |
| | | try { |
| | | CompletableFuture.allOf( |
| | | tbAttResBaseInfo, |
| | | tbAttResBuildInfo, |
| | | tbFileStorageLocation, |
| | | tbAttResEngBene, |
| | | tbAttResInfomationProject, |
| | | tbAttResMgrSysB, |
| | |
| | | tbAttResWaterDelivery).get(); |
| | | // 数据处理 |
| | | list.addAll(tbAttResBaseInfo.get()); |
| | | list.addAll(tbAttResBuildInfo.get()); |
| | | list.addAll(tbAttResEngBene.get()); |
| | | list.addAll(tbAttResInfomationProject.get()); |
| | | list.addAll(tbAttResMgrSysB.get()); |
| | |
| | | list.addAll(tbAttResStagChar.get()); |
| | | list.addAll(tbAttResWaterBlock.get()); |
| | | list.addAll(tbAttResWaterDelivery.get()); |
| | | list.addAll(tbFileStorageLocation.get()); |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } catch (ExecutionException e) { |
| | |
| | | return tbInfo; |
| | | },executor); |
| | | } |
| | | |
| | | /** |
| | | * 更新水库信息填报最终状态 |
| | | * @param resGuid 水库编码 |
| | | * @param state 状态值 |
| | | */ |
| | | @Override |
| | | public Boolean updateFinalState(String resGuid, int state) { |
| | | TbAttResBase tbAttResBase = new TbAttResBase(); |
| | | tbAttResBase.setGuid(resGuid); |
| | | if (state==2){ |
| | | // 审核通过,判断是否已全部通过审核 |
| | | Boolean flag = baseMapper.getFinalCheckStateByGuid(resGuid); |
| | | if (flag){ |
| | | tbAttResBase.setFinalState(1); |
| | | }else { |
| | | tbAttResBase.setFinalState(0); |
| | | } |
| | | }else { |
| | | tbAttResBase.setFinalState(0); |
| | | } |
| | | //更新 |
| | | return updateById(tbAttResBase); |
| | | } |
| | | } |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResBuildInfo; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResBuildInfoMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBuildInfoService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResBuildInfo); |
| | | if (i>0){ |
| | | tbAttResBaseService.updateFinalState(tbAttResBuildInfo.getResGuid(),0); |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResBuildInfo tbAttResBuildInfo) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResBuildInfo.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResBuildInfo detail = baseMapper.getDetailByResGuid(tbAttResBuildInfo.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResBuildInfo); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResBuildInfo.getResGuid(),tbAttResBuildInfo.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResEngBene; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResEngBeneMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResEngBeneService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResEngBene tbAttResEngBene) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResEngBene.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResEngBene detail = baseMapper.getDetailByResGuid(tbAttResEngBene.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResEngBene); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResEngBene.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResEngBene tbAttResEngBene) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResEngBene.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResEngBene detail = baseMapper.getDetailByResGuid(tbAttResEngBene.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResEngBene); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResEngBene.getResGuid(), tbAttResEngBene.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | fillName = "审核"; |
| | | } |
| | | if (newTbAttResInformationProject.getCheckState()==3){ |
| | | fillName = "退回" + (null==newTbAttResInformationProject.getCheckLog()?"":":" + newTbAttResInformationProject.getCheckLog()); |
| | | // fillName = "退回" + (null==newTbAttResInformationProject.getCheckLog()?"":":" + newTbAttResInformationProject.getCheckLog()); |
| | | } |
| | | |
| | | // 拼接 |
| | |
| | | // 判断是否存在 |
| | | if (null==oldAbAttResBase){ |
| | | // 填报 |
| | | newTbAttResInformationProject.setCheckLog(builder.toString()); |
| | | // newTbAttResInformationProject.setCheckLog(builder.toString()); |
| | | }else { |
| | | StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getCheckLog()?"":oldAbAttResBase.getCheckLog()); |
| | | stringBuilder.append(builder); |
| | | // StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getCheckLog()?"":oldAbAttResBase.getCheckLog()); |
| | | // stringBuilder.append(builder); |
| | | // 填报 |
| | | newTbAttResInformationProject.setCheckLog(stringBuilder.toString()); |
| | | // newTbAttResInformationProject.setCheckLog(stringBuilder.toString()); |
| | | } |
| | | } |
| | | |
| | |
| | | fillName = "审核"; |
| | | } |
| | | if (newTbAttResInformationProject.getCheckState()==3){ |
| | | fillName = "退回" + (null==newTbAttResInformationProject.getCheckLog()?"":":" + newTbAttResInformationProject.getCheckLog()); |
| | | // fillName = "退回" + (null==newTbAttResInformationProject.getCheckLog()?"":":" + newTbAttResInformationProject.getCheckLog()); |
| | | } |
| | | // 管理员编辑 |
| | | if (newTbAttResInformationProject.getCheckState()==4){ |
| | |
| | | // 判断是否存在 |
| | | if (null==oldAbAttResBase){ |
| | | // 填报 |
| | | newTbAttResInformationProject.setLog(builder.toString()); |
| | | // newTbAttResInformationProject.setLog(builder.toString()); |
| | | }else { |
| | | StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getLog()?"":oldAbAttResBase.getLog()); |
| | | stringBuilder.append(builder); |
| | | // StringBuilder stringBuilder = new StringBuilder(null==oldAbAttResBase.getLog()?"":oldAbAttResBase.getLog()); |
| | | // stringBuilder.append(builder); |
| | | // 填报 |
| | | newTbAttResInformationProject.setLog(stringBuilder.toString()); |
| | | // newTbAttResInformationProject.setLog(stringBuilder.toString()); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResMgrSysB; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResMgrSysBMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResMgrSysBService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResMgrSysB tbAttResMgrSysB) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResMgrSysB.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResMgrSysB detail = baseMapper.getDetailByResGuid(tbAttResMgrSysB.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResMgrSysB); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResMgrSysB.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResMgrSysB tbAttResMgrSysB) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResMgrSysB.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResMgrSysB detail = baseMapper.getDetailByResGuid(tbAttResMgrSysB.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResMgrSysB); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResMgrSysB.getResGuid(), tbAttResMgrSysB.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | import cn.gistack.sm.intelligentCall.entity.Scene; |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResPowerStation; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResPowerStationMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResPowerStationService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResPowerStation> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResPowerStation> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新日志 |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResPowerStation> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResPowerStation> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return batch; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResProjectUtilize; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResProjectUtilizeMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResProjectUtilizeService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResProjectUtilize tbAttResProjectUtilize) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResProjectUtilize.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResProjectUtilize detail = baseMapper.getDetailByResGuid(tbAttResProjectUtilize.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResProjectUtilize); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResProjectUtilize.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResProjectUtilize tbAttResProjectUtilize) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResProjectUtilize.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResProjectUtilize detail = baseMapper.getDetailByResGuid(tbAttResProjectUtilize.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResProjectUtilize); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResProjectUtilize.getResGuid(), tbAttResProjectUtilize.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResRsbVerspi; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResRsbNorspiMapper; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResRsbVerspiMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResRsbNorspiService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResRsbSpillwayService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResRsbVerspiService; |
| | |
| | | @Autowired |
| | | private ITbAttResRsbSpillwayService tbAttResRsbSpillwayService; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResRsbNorspi> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | String resGuid = newList.get(0).getResGuid(); |
| | | // 查询是否存在 |
| | | List<TbAttResRsbNorspi> oldList = baseMapper.getDetailByResGuid(resGuid); |
| | |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResRsbNorspi> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResRsbNorspi> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return batch; |
| | | } |
| | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResRsbSpillway; |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResRsbSpillway; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResRsbSpillwayMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResRsbSpillwayService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResRsbSpillway> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResRsbSpillway> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新日志 |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResRsbSpillway> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResRsbSpillway> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | // 返回 |
| | | return batch; |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResRsbVerspi; |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResRsbVerspi; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResRsbVerspiMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResRsbVerspiService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResRsbVerspi> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResRsbVerspi> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新日志 |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResRsbVerspi> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResRsbVerspi> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return batch; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResSafetyMonitor; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResSafetyMonitorMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResSafetyMonitorService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResSafetyMonitor tbAttResSafetyMonitor) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResSafetyMonitor.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResSafetyMonitor detail = baseMapper.getDetailByResGuid(tbAttResSafetyMonitor.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResSafetyMonitor); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResSafetyMonitor.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResSafetyMonitor tbAttResSafetyMonitor) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResSafetyMonitor.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResSafetyMonitor detail = baseMapper.getDetailByResGuid(tbAttResSafetyMonitor.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResSafetyMonitor); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResSafetyMonitor.getResGuid(), tbAttResSafetyMonitor.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResStagChar; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResStagCharMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResStagCharService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbAttResStagChar tbAttResStagChar) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResStagChar.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResStagChar detail = baseMapper.getDetailByResGuid(tbAttResStagChar.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbAttResStagChar); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbAttResStagChar tbAttResStagChar) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbAttResStagChar.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbAttResStagChar detail = baseMapper.getDetailByResGuid(tbAttResStagChar.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbAttResStagChar); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbAttResStagChar.getResGuid(), tbAttResStagChar.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResWaterBlock; |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResWaterBlock; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResWaterBlockMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResWaterBlockService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResWaterBlock> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResWaterBlock> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新日志 |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResWaterBlock> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResWaterBlock> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return batch; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResWaterDelivery; |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResWaterDelivery; |
| | | import cn.gistack.sm.sjztmd.mapper.TbAttResWaterDeliveryMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResWaterDeliveryService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(List<TbAttResWaterDelivery> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResWaterDelivery> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新日志 |
| | | setUpdateLog(oldList,newList); |
| | | // 创建或更新数据 |
| | | boolean flag = addOrUpdate(oldList,newList); |
| | | if (flag){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(List<TbAttResWaterDelivery> newList) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (newList.get(0).getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | List<TbAttResWaterDelivery> oldList = baseMapper.getDetailByResGuid(newList.get(0).getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | setUpdateCheckLog(oldList,newList); |
| | | // 更新数据 |
| | | boolean batch = updateBatchById(newList); |
| | | if (batch){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(newList.get(0).getResGuid(), newList.get(0).getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | // 返回 |
| | | return batch; |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbFileStorageLocation; |
| | | import cn.gistack.sm.sjztmd.mapper.TbFileStorageLocationMapper; |
| | | import cn.gistack.sm.sjztmd.service.ITbAttResBaseService; |
| | | import cn.gistack.sm.sjztmd.service.ITbFileStorageLocationService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Autowired |
| | | private ITbAttResBaseService tbAttResBaseService; |
| | | |
| | | /** |
| | | * 查询水库填报详情信息 |
| | | * @param guid |
| | |
| | | */ |
| | | @Override |
| | | public boolean updateByGuid(TbFileStorageLocation tbFileStorageLocation) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbFileStorageLocation.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbFileStorageLocation detail = baseMapper.getDetailByResGuid(tbFileStorageLocation.getResGuid()); |
| | | // 更新日志 |
| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbFileStorageLocation); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbFileStorageLocation.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | */ |
| | | @Override |
| | | public boolean auditByGuid(TbFileStorageLocation tbFileStorageLocation) { |
| | | boolean edit = false; |
| | | // 编辑标记 |
| | | if (tbFileStorageLocation.getCheckState()==4){ |
| | | edit = true; |
| | | } |
| | | // 查询是否存在 |
| | | TbFileStorageLocation detail = baseMapper.getDetailByResGuid(tbFileStorageLocation.getResGuid()); |
| | | // 更新操作日志 |
| | |
| | | // 更新数据 |
| | | int i = baseMapper.updateById(tbFileStorageLocation); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbFileStorageLocation.getResGuid(), tbFileStorageLocation.getCheckState()); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |