| | |
| | | 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; |
| | |
| | | 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 |
| | |
| | | /* ================= 配置 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 |