对接
This commit is contained in:
parent
bae76397e0
commit
c62d79dded
@ -9,6 +9,7 @@ import com.zhgd.xmgl.modules.cost.dto.CostBudgetDto;
|
|||||||
import com.zhgd.xmgl.modules.cost.dto.CostContractPlanDto;
|
import com.zhgd.xmgl.modules.cost.dto.CostContractPlanDto;
|
||||||
import com.zhgd.xmgl.modules.cost.entity.CostSubject;
|
import com.zhgd.xmgl.modules.cost.entity.CostSubject;
|
||||||
import com.zhgd.xmgl.modules.cost.vo.CostContractPlanVo;
|
import com.zhgd.xmgl.modules.cost.vo.CostContractPlanVo;
|
||||||
|
import com.zhgd.xmgl.modules.project.entity.Project;
|
||||||
import com.zhgd.xmgl.modules.project.entity.vo.ProjectInfoExtVo;
|
import com.zhgd.xmgl.modules.project.entity.vo.ProjectInfoExtVo;
|
||||||
import com.zhgd.xmgl.modules.project.service.IProjectService;
|
import com.zhgd.xmgl.modules.project.service.IProjectService;
|
||||||
import com.zhgd.xmgl.security.util.SecurityUtils;
|
import com.zhgd.xmgl.security.util.SecurityUtils;
|
||||||
@ -120,7 +121,12 @@ public class CostContractPlanController {
|
|||||||
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", dataType = "String")
|
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", dataType = "String")
|
||||||
@PostMapping(value = "/tree")
|
@PostMapping(value = "/tree")
|
||||||
public Result<List<CostContractPlanDto>> tree(@ApiIgnore @RequestBody Map<String, Object> map) {
|
public Result<List<CostContractPlanDto>> tree(@ApiIgnore @RequestBody Map<String, Object> map) {
|
||||||
|
Integer projectId = MapUtils.getInteger(map, "projectId");
|
||||||
String projectSn = MapUtils.getString(map, "projectSn");
|
String projectSn = MapUtils.getString(map, "projectSn");
|
||||||
|
if (projectId != null) {
|
||||||
|
Project id = projectService.getById(projectId);
|
||||||
|
projectSn = id.getProjectSn();
|
||||||
|
}
|
||||||
ProjectInfoExtVo projectInfoBySn = projectService.getProjectInfoBySn(projectSn);
|
ProjectInfoExtVo projectInfoBySn = projectService.getProjectInfoBySn(projectSn);
|
||||||
Company company = companyService.getOne(Wrappers.<Company>lambdaQuery().eq(Company::getCompanySn, projectInfoBySn.getCompanySn()));
|
Company company = companyService.getOne(Wrappers.<Company>lambdaQuery().eq(Company::getCompanySn, projectInfoBySn.getCompanySn()));
|
||||||
map.put("companySn", company.getHeadquartersSn());
|
map.put("companySn", company.getHeadquartersSn());
|
||||||
|
|||||||
@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|||||||
import com.zhgd.annotation.OperLog;
|
import com.zhgd.annotation.OperLog;
|
||||||
import com.zhgd.xmgl.modules.cost.entity.CostQuantity;
|
import com.zhgd.xmgl.modules.cost.entity.CostQuantity;
|
||||||
import com.zhgd.xmgl.modules.cost.service.ICostQuantityService;
|
import com.zhgd.xmgl.modules.cost.service.ICostQuantityService;
|
||||||
|
import com.zhgd.xmgl.modules.project.entity.Project;
|
||||||
|
import com.zhgd.xmgl.modules.project.service.IProjectService;
|
||||||
import com.zhgd.xmgl.util.PageUtil;
|
import com.zhgd.xmgl.util.PageUtil;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
@ -68,6 +70,9 @@ public class CostPayPlanController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ICostQuantityService costQuantityService;
|
private ICostQuantityService costQuantityService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProjectService projectService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
*
|
*
|
||||||
@ -97,6 +102,10 @@ public class CostPayPlanController {
|
|||||||
@ApiOperation(value = " 列表查询资金计划信息", notes = "列表查询资金计划信息", httpMethod = "POST")
|
@ApiOperation(value = " 列表查询资金计划信息", notes = "列表查询资金计划信息", httpMethod = "POST")
|
||||||
@PostMapping(value = "/list")
|
@PostMapping(value = "/list")
|
||||||
public Result<List<CostPayPlan>> queryList(@RequestBody CostPayPlan costPayPlan) {
|
public Result<List<CostPayPlan>> queryList(@RequestBody CostPayPlan costPayPlan) {
|
||||||
|
if (costPayPlan.getProjectId() != null) {
|
||||||
|
Project project = projectService.getById(costPayPlan.getProjectId());
|
||||||
|
costPayPlan.setProjectSn(project.getProjectSn());
|
||||||
|
}
|
||||||
QueryWrapper<CostPayPlan> queryWrapper = QueryGenerator.initQueryWrapper(costPayPlan);
|
QueryWrapper<CostPayPlan> queryWrapper = QueryGenerator.initQueryWrapper(costPayPlan);
|
||||||
List<CostPayPlan> list = costPayPlanService.list(queryWrapper);
|
List<CostPayPlan> list = costPayPlanService.list(queryWrapper);
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
|
|||||||
@ -93,4 +93,8 @@ public class CostPayPlan implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value = "产值列表")
|
@ApiModelProperty(value = "产值列表")
|
||||||
private List<CostQuantity> costQuantityList;
|
private List<CostQuantity> costQuantityList;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "项目ID")
|
||||||
|
private String projectId;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -192,6 +192,27 @@ public class ProgressPanoramaNodePlanController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
* @param progressPanoramaNodePlan
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "编辑进度-全景节点计划信息", notes = "编辑进度-全景节点计划信息" , httpMethod="POST")
|
||||||
|
@PostMapping(value = "/editInfo")
|
||||||
|
public Result<ProgressPanoramaNodePlan> editInfo(@RequestBody ProgressPanoramaNodePlan progressPanoramaNodePlan) {
|
||||||
|
Result<ProgressPanoramaNodePlan> result = new Result<ProgressPanoramaNodePlan>();
|
||||||
|
ProgressPanoramaNodePlan progressPanoramaNodePlanEntity = progressPanoramaNodePlanService.getById(progressPanoramaNodePlan.getId());
|
||||||
|
if(progressPanoramaNodePlanEntity==null) {
|
||||||
|
result.error500(MessageUtil.get("notFindErr"));
|
||||||
|
}else {
|
||||||
|
boolean ok = progressPanoramaNodePlanService.updateById(progressPanoramaNodePlan);
|
||||||
|
if(ok) {
|
||||||
|
result.successMsg(MessageUtil.get("editSucess"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * 编辑
|
// * 编辑
|
||||||
// * @param object
|
// * @param object
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user