| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.TbAttResBase; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @DS("zt") |
| | | List<Map<String, Object>> getTbInfo(@Param("resGuid") String resGuid,@Param("tableName") String tableName); |
| | | @InterceptorIgnore(tenantLine = "true") |
| | | List<Map<String, Object>> getTbInfo(@Param("resGuid") String resGuid, |
| | | @Param("tableNameColumn") String tableNameColumn, |
| | | @Param("tableName") String tableName); |
| | | } |
| | |
| | | |
| | | <!--查询水库其他填报数据--> |
| | | <select id="getTbInfo" resultType="java.util.Map"> |
| | | SELECT #{tableName} AS name,ifnull("check_state",-1) as name FROM "tb_att_res_water_delivery" WHERE "res_guid" = #{resGuid} |
| | | SELECT ${tableNameColumn} AS name,ifnull("check_state",-1) as value FROM ${tableName} WHERE "res_guid" = #{resGuid} |
| | | </select> |
| | | </mapper> |
| | |
| | | private CompletableFuture<List<Map<String,Object>>> getTbInfo(String tableName,String resGuid,ThreadPoolExecutor executor){ |
| | | return CompletableFuture.supplyAsync(()->{ |
| | | // 查询所有水库填报的状态信息 |
| | | List<Map<String, Object>> tbInfo = baseMapper.getTbInfo(resGuid, tableName); |
| | | List<Map<String, Object>> tbInfo = baseMapper.getTbInfo(resGuid,"\'"+tableName+"'" ,"\""+tableName+"\""); |
| | | if (tbInfo.size()==0){ |
| | | Map<String, Object> map = new HashMap<>(2); |
| | | map.put("NAME",tableName); |