mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 16:35:06 +08:00
[feat]合并分支
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
package cn.iocoder.yudao.module.pms.api.budegt;
|
||||
|
||||
import cn.iocoder.yudao.module.pms.api.budegt.dto.BudegtDetailRespDTO;
|
||||
import cn.iocoder.yudao.module.pms.api.budegt.dto.BudegtResDTO;
|
||||
|
||||
public interface BudgetApi {
|
||||
/**
|
||||
* 获得应收款的部分信息
|
||||
*/
|
||||
BudegtResDTO getBudegt(Long id);
|
||||
|
||||
/**
|
||||
* 获得应收款的detail信息
|
||||
*/
|
||||
BudegtDetailRespDTO getBudegtDetail(Long id);
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.iocoder.yudao.module.pms.api.budegt.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class BudegtDetailRespDTO {
|
||||
/**
|
||||
* 合同管理
|
||||
*/
|
||||
private Long contractId;
|
||||
/**
|
||||
* 预算文件url
|
||||
*/
|
||||
private String budgetFileUrl;
|
||||
/**
|
||||
* 预算外包成本
|
||||
*/
|
||||
private BigDecimal outsourcingCosts;
|
||||
/**
|
||||
* 人力成本
|
||||
*/
|
||||
private BigDecimal laborCosts;
|
||||
/**
|
||||
* 累计人力成本
|
||||
*/
|
||||
private BigDecimal accumulatedLaborCosts;
|
||||
/**
|
||||
* 生产成本
|
||||
*/
|
||||
private BigDecimal productCosts;
|
||||
/**
|
||||
* 累计生产成本
|
||||
*/
|
||||
private BigDecimal accumulatedProductCosts;
|
||||
/**
|
||||
* 财务成本
|
||||
*/
|
||||
private BigDecimal financialCosts;
|
||||
/**
|
||||
* 累计财务成本
|
||||
*/
|
||||
private BigDecimal accumulatedFinancialCosts;
|
||||
/**
|
||||
* 回款情况
|
||||
*/
|
||||
private String collectionSituation;
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package cn.iocoder.yudao.module.pms.api.budegt.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class BudegtResDTO {
|
||||
|
||||
/**
|
||||
* 合同管理
|
||||
*/
|
||||
private Long contractId;
|
||||
/**
|
||||
* 预算文件url
|
||||
*/
|
||||
private String budgetFileUrl;
|
||||
/**
|
||||
* 预算外包成本
|
||||
*/
|
||||
private BigDecimal outsourcingCosts;
|
||||
/**
|
||||
* 人力成本
|
||||
*/
|
||||
private BigDecimal laborCosts;
|
||||
/**
|
||||
* 累计人力成本
|
||||
*/
|
||||
private BigDecimal accumulatedLaborCosts;
|
||||
/**
|
||||
* 生产成本
|
||||
*/
|
||||
private BigDecimal productCosts;
|
||||
/**
|
||||
* 累计生产成本
|
||||
*/
|
||||
private BigDecimal accumulatedProductCosts;
|
||||
/**
|
||||
* 财务成本
|
||||
*/
|
||||
private BigDecimal financialCosts;
|
||||
/**
|
||||
* 累计财务成本
|
||||
*/
|
||||
private BigDecimal accumulatedFinancialCosts;
|
||||
/**
|
||||
* 回款情况
|
||||
*/
|
||||
private String collectionSituation;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package cn.iocoder.yudao.module.pms.api;
|
||||
package cn.iocoder.yudao.module.pms.api.project;
|
||||
|
||||
import cn.iocoder.yudao.module.pms.api.project.dto.ProjectDetailRespDTO;
|
||||
import cn.iocoder.yudao.module.pms.api.project.dto.ProjectRespDTO;
|
@ -0,0 +1,32 @@
|
||||
package cn.iocoder.yudao.module.pms.api.project;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.module.pms.api.budegt.BudgetApi;
|
||||
import cn.iocoder.yudao.module.pms.api.budegt.dto.BudegtDetailRespDTO;
|
||||
import cn.iocoder.yudao.module.pms.api.budegt.dto.BudegtResDTO;
|
||||
import cn.iocoder.yudao.module.pms.dal.dataobject.budget.BudgetDO;
|
||||
import cn.iocoder.yudao.module.pms.dal.mysql.budget.BudgetMapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
@Service
|
||||
@Validated
|
||||
public class BudgetImpl implements BudgetApi {
|
||||
|
||||
@Resource
|
||||
private BudgetMapper budgetMapper;
|
||||
|
||||
@Override
|
||||
public BudegtResDTO getBudegt(Long id) {
|
||||
BudgetDO budgetDO = budgetMapper.selectById(id);
|
||||
BudegtResDTO budegtResDTO = BeanUtils.toBean(budgetDO, BudegtResDTO.class);
|
||||
return budegtResDTO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BudegtDetailRespDTO getBudegtDetail(Long id) {
|
||||
// budgetMapper.
|
||||
return null;
|
||||
}
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
package cn.iocoder.yudao.module.pms.api.project;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.module.pms.api.ProjectApi;
|
||||
import cn.iocoder.yudao.module.pms.api.project.dto.ProjectDetailRespDTO;
|
||||
import cn.iocoder.yudao.module.pms.api.project.dto.ProjectRespDTO;
|
||||
import cn.iocoder.yudao.module.pms.dal.dataobject.project.ProjectDO;
|
||||
|
Reference in New Issue
Block a user