|
|
@@ -41,6 +41,7 @@ import org.springblade.manager.feign.WbsTreeContractClient;
|
|
|
import org.springblade.manager.vo.WbsTreeContractTreeVOS;
|
|
|
import org.springblade.system.entity.Menu;
|
|
|
import org.springblade.system.entity.RoleMenu;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -71,8 +72,10 @@ public class MaterialProgressController extends BladeController {
|
|
|
private final IImageClassificationFileService imageClassificationFileService;
|
|
|
|
|
|
private final ContractClient contractClient;
|
|
|
+
|
|
|
private final JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 资料进度
|
|
|
*/
|
|
|
@@ -546,10 +549,10 @@ public class MaterialProgressController extends BladeController {
|
|
|
if(!list.isEmpty()){
|
|
|
hideTypes= list.stream().map(HideProcess::getHideType).map(String::valueOf).collect(Collectors.joining(","));
|
|
|
}
|
|
|
- reVO.setProcessMaterialList("开工报告", workStartReports.size(), workStartReportsAmount,hideTypes.contains("1")?1:0);
|
|
|
- reVO.setProcessMaterialList("工序资料", process.size(), processAmount,hideTypes.contains("2")?1:0);
|
|
|
- reVO.setProcessMaterialList("评定资料", evaluation.size(), evaluationAmount,hideTypes.contains("3")?1:0);
|
|
|
- reVO.setProcessMaterialList("中间交工", completion.size(), completionAmount,hideTypes.contains("4")?1:0);
|
|
|
+ reVO.setProcessMaterialList("开工报告", workStartReports.size(), workStartReportsAmount,hideTypes.contains("1")?1:0,1);
|
|
|
+ reVO.setProcessMaterialList("工序资料", process.size(), processAmount,hideTypes.contains("2")?1:0,2);
|
|
|
+ reVO.setProcessMaterialList("评定资料", evaluation.size(), evaluationAmount,hideTypes.contains("3")?1:0,3);
|
|
|
+ reVO.setProcessMaterialList("中间交工", completion.size(), completionAmount,hideTypes.contains("4")?1:0,4);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -563,7 +566,7 @@ public class MaterialProgressController extends BladeController {
|
|
|
@GetMapping("/hideProcessMaterial")
|
|
|
@ApiOperation(value = "隐藏进度")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
- private R hideProcessMaterial(Long contractId,Integer classifyType,Integer hideType,Integer type){
|
|
|
+ public R hideProcessMaterial(Long contractId,Integer classifyType,Integer hideType,Integer type){
|
|
|
classifyType = StringUtils.isEmpty(String.valueOf(classifyType)) ? 1 : classifyType;
|
|
|
if(type==0){
|
|
|
String sql="select * from m_hide_process where contract_id= "+contractId+" and classify_type= "+classifyType+" and hide_type= "+hideType;
|