首页工程进度

This commit is contained in:
cwchen 2024-06-14 12:09:22 +08:00
parent fecfbfcd17
commit e0a403bf30
5 changed files with 53 additions and 0 deletions

View File

@ -70,4 +70,10 @@ public class XcIndexController extends BaseController {
public AjaxResult getProMoney(ScreenParamDto dto){
return service.getProMoney(dto);
}
@ApiOperation(value = "项目进度")
@GetMapping("getProSchedule")
public AjaxResult getProSchedule(ScreenParamDto dto){
return service.getProSchedule(dto);
}
}

View File

@ -60,4 +60,14 @@ public interface XcIndexMapper {
* @return
*/
String getProCost(@Param("time") String times,@Param("bidCode") String bidCode);
/**
* 项目进度
* @param dto
* @return Map<String, Object>
* @author cwchen
* @date 2024/6/14 11:01
*/
@MapKey("bidCode")
Map<String, Object> getProSchedule(ScreenParamDto dto);
}

View File

@ -5,11 +5,13 @@ import com.securitycontrol.entity.screen.dto.ScreenParamDto;
/**
* S施工现场大屏
*
* @author 黑子
*/
public interface XcIndexService {
/**
* 查询项目简介
*
* @param dto
* @return
*/
@ -17,6 +19,7 @@ public interface XcIndexService {
/**
* 查询实施环境检测数据
*
* @param dto
* @return
*/
@ -24,6 +27,7 @@ public interface XcIndexService {
/**
* 查询项目风险数据
*
* @param dto
* @return
*/
@ -31,6 +35,7 @@ public interface XcIndexService {
/**
* 查询工程项目进度
*
* @param dto
* @return
*/
@ -38,8 +43,18 @@ public interface XcIndexService {
/**
* 查询工程项目成本
*
* @param dto
* @return
*/
AjaxResult getProMoney(ScreenParamDto dto);
/**
* 项目进度
* @param dto
* @return AjaxResult
* @author cwchen
* @date 2024/6/14 10:58
*/
AjaxResult getProSchedule(ScreenParamDto dto);
}

View File

@ -234,4 +234,15 @@ public class XcIndexServiceImpl implements XcIndexService {
}
return AjaxResult.success(dataMap);
}
@Override
public AjaxResult getProSchedule(ScreenParamDto dto) {
try {
Map<String,Object> mapData = mapper.getProSchedule(dto);
return AjaxResult.success(mapData.get(dto.getBidCode()));
} catch (Exception e) {
log.error("项目进度",e);
return AjaxResult.error();
}
}
}

View File

@ -53,4 +53,15 @@
and bid_code=#{bidCode}
</select>
<!--项目进度-->
<select id="getProSchedule" resultType="java.util.Map">
SELECT bid_code AS bidCode,
plan_start_time AS planStartTime,
plan_tc_time AS planTcTime,
bid_progress AS bidProgress,
sign_progress AS signProgress,
pro_progress AS proProgress
FROM tb_pro_reality_progress
WHERE bid_code = #{bidCode}
</select>
</mapper>