首页工程进度
This commit is contained in:
parent
fecfbfcd17
commit
e0a403bf30
|
|
@ -70,4 +70,10 @@ public class XcIndexController extends BaseController {
|
||||||
public AjaxResult getProMoney(ScreenParamDto dto){
|
public AjaxResult getProMoney(ScreenParamDto dto){
|
||||||
return service.getProMoney(dto);
|
return service.getProMoney(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "项目进度")
|
||||||
|
@GetMapping("getProSchedule")
|
||||||
|
public AjaxResult getProSchedule(ScreenParamDto dto){
|
||||||
|
return service.getProSchedule(dto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,4 +60,14 @@ public interface XcIndexMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
String getProCost(@Param("time") String times,@Param("bidCode") String bidCode);
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,13 @@ import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* S施工现场大屏
|
* S施工现场大屏
|
||||||
|
*
|
||||||
* @author 黑子
|
* @author 黑子
|
||||||
*/
|
*/
|
||||||
public interface XcIndexService {
|
public interface XcIndexService {
|
||||||
/**
|
/**
|
||||||
* 查询项目简介
|
* 查询项目简介
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -17,6 +19,7 @@ public interface XcIndexService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询实施环境检测数据
|
* 查询实施环境检测数据
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -24,6 +27,7 @@ public interface XcIndexService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询项目风险数据
|
* 查询项目风险数据
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -31,6 +35,7 @@ public interface XcIndexService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询工程项目进度
|
* 查询工程项目进度
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -38,8 +43,18 @@ public interface XcIndexService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询工程项目成本
|
* 查询工程项目成本
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
AjaxResult getProMoney(ScreenParamDto dto);
|
AjaxResult getProMoney(ScreenParamDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目进度
|
||||||
|
* @param dto
|
||||||
|
* @return AjaxResult
|
||||||
|
* @author cwchen
|
||||||
|
* @date 2024/6/14 10:58
|
||||||
|
*/
|
||||||
|
AjaxResult getProSchedule(ScreenParamDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -234,4 +234,15 @@ public class XcIndexServiceImpl implements XcIndexService {
|
||||||
}
|
}
|
||||||
return AjaxResult.success(dataMap);
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,15 @@
|
||||||
and bid_code=#{bidCode}
|
and bid_code=#{bidCode}
|
||||||
|
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
Loading…
Reference in New Issue