This commit is contained in:
parent
6239edadfa
commit
2e28060835
|
|
@ -76,4 +76,10 @@ public class XcIndexController extends BaseController {
|
||||||
public AjaxResult getProSchedule(ScreenParamDto dto){
|
public AjaxResult getProSchedule(ScreenParamDto dto){
|
||||||
return service.getProSchedule(dto);
|
return service.getProSchedule(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "项目风险")
|
||||||
|
@GetMapping("getProRiskNum")
|
||||||
|
public AjaxResult getProRiskNum(ScreenParamDto dto){
|
||||||
|
return service.getProRiskNum(dto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,4 +70,14 @@ public interface XcIndexMapper {
|
||||||
*/
|
*/
|
||||||
@MapKey("bidCode")
|
@MapKey("bidCode")
|
||||||
Map<String, Object> getProSchedule(ScreenParamDto dto);
|
Map<String, Object> getProSchedule(ScreenParamDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目风险数量
|
||||||
|
* @param dto
|
||||||
|
* @return Map<String, Object>
|
||||||
|
* @author cwchen
|
||||||
|
* @date 2024/6/17 12:01
|
||||||
|
*/
|
||||||
|
@MapKey("bidCode")
|
||||||
|
Map<String, Object> getProRiskNum(ScreenParamDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,13 @@ public interface XcIndexService {
|
||||||
* @date 2024/6/14 10:58
|
* @date 2024/6/14 10:58
|
||||||
*/
|
*/
|
||||||
AjaxResult getProSchedule(ScreenParamDto dto);
|
AjaxResult getProSchedule(ScreenParamDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目风险
|
||||||
|
* @param dto
|
||||||
|
* @return AjaxResult
|
||||||
|
* @author cwchen
|
||||||
|
* @date 2024/6/17 12:00
|
||||||
|
*/
|
||||||
|
AjaxResult getProRiskNum(ScreenParamDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,6 @@ public class AccessMgeServiceImpl implements AccessMgeService {
|
||||||
vo.setBase64(base64);
|
vo.setBase64(base64);
|
||||||
}
|
}
|
||||||
vo.setPersonName(handleData(vo.getSourceData(),"personName"));
|
vo.setPersonName(handleData(vo.getSourceData(),"personName"));
|
||||||
vo.setAccesssTime(handleData(vo.getSourceData(),"dataTime"));
|
|
||||||
}
|
}
|
||||||
if(i == 0 || i == 1){
|
if(i == 0 || i == 1){
|
||||||
noWarnList.add(vo);
|
noWarnList.add(vo);
|
||||||
|
|
|
||||||
|
|
@ -245,4 +245,15 @@ public class XcIndexServiceImpl implements XcIndexService {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult getProRiskNum(ScreenParamDto dto) {
|
||||||
|
try {
|
||||||
|
Map<String,Object> mapData = mapper.getProRiskNum(dto);
|
||||||
|
return AjaxResult.success(mapData.get(dto.getBidCode()));
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("项目进度",e);
|
||||||
|
return AjaxResult.error();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,4 +64,18 @@
|
||||||
FROM tb_pro_reality_progress
|
FROM tb_pro_reality_progress
|
||||||
WHERE bid_code = #{bidCode}
|
WHERE bid_code = #{bidCode}
|
||||||
</select>
|
</select>
|
||||||
|
<!--项目风险数量-->
|
||||||
|
<select id="getProRiskNum" resultType="java.util.Map">
|
||||||
|
SELECT bid_code AS bidCode,
|
||||||
|
two_risk_num AS twoRiskNum,
|
||||||
|
three_risk_num AS threeRiskNum,
|
||||||
|
four_risk_num AS fourRiskNum,
|
||||||
|
five_risk_num AS fiveRiskNum,
|
||||||
|
two_class_num AS twoClassNum,
|
||||||
|
three_class_num AS threeClassNum,
|
||||||
|
four_class_num AS fourClassNum,
|
||||||
|
five_class_num AS fiveClassNum
|
||||||
|
FROM tb_pro_risk
|
||||||
|
WHERE bid_code = #{bidCode}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue