tuqin
11 小时以前 2c4bc1808f272b7d7282d1b8ba416d606ebc7df5
src/main/java/com/ruoyi/production/service/impl/ProductionCostingServiceImpl.java
@@ -5,12 +5,12 @@
import com.ruoyi.production.bean.vo.ProductionCostingDetailVo;
import com.ruoyi.production.bean.vo.ProductionCostingRawVo;
import com.ruoyi.production.bean.vo.ProductionCostingSummaryVo;
import com.ruoyi.production.mapper.ProductionCostingDeptMapper;
import com.ruoyi.production.mapper.ProductionCostingProcessMapper;
import com.ruoyi.production.mapper.ProductionCostingFactorMapper;
import com.ruoyi.production.mapper.ProductionCostingMapper;
import com.ruoyi.production.mapper.ProductionCostingStandardMapper;
import com.ruoyi.production.mapper.ProductionCostingWorkdayMapper;
import com.ruoyi.production.pojo.ProductionCostingDept;
import com.ruoyi.production.pojo.ProductionCostingProcess;
import com.ruoyi.production.pojo.ProductionCostingFactor;
import com.ruoyi.production.pojo.ProductionCostingStandard;
import com.ruoyi.production.pojo.ProductionCostingWorkday;
@@ -51,7 +51,7 @@
    private final ProductionCostingMapper productionCostingMapper;
    private final ProductionCostingStandardMapper standardMapper;
    private final ProductionCostingFactorMapper factorMapper;
    private final ProductionCostingDeptMapper deptMapper;
    private final ProductionCostingProcessMapper processMapper;
    private final ProductionCostingWorkdayMapper workdayMapper;
    @Override
@@ -230,23 +230,23 @@
    /* ================= 配置 CRUD ================= */
    @Override
    public List<ProductionCostingDept> listDept() {
        return deptMapper.selectDeptConfigs();
    public List<ProductionCostingProcess> listProcess(ProductionCostingProcess query) {
        return processMapper.selectProcessList(query == null ? new ProductionCostingProcess() : query);
    }
    @Override
    public boolean saveDept(ProductionCostingDept dept) {
        return deptMapper.insert(dept) > 0;
    public boolean saveProcess(ProductionCostingProcess process) {
        return processMapper.insert(process) > 0;
    }
    @Override
    public boolean updateDept(ProductionCostingDept dept) {
        return deptMapper.updateById(dept) > 0;
    public boolean updateProcess(ProductionCostingProcess process) {
        return processMapper.updateById(process) > 0;
    }
    @Override
    public boolean removeDept(Long id) {
        return deptMapper.deleteById(id) > 0;
    public boolean removeProcess(Long id) {
        return processMapper.deleteById(id) > 0;
    }
    @Override