zhangherong
2025-07-09 ad853219d4a8c85eaf8c51e66e6efc49df5433bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.jeecg.modules.eam.service.impl;
 
import org.jeecg.common.constant.CommonConstant;
import org.jeecg.modules.eam.constant.EquipmentPurchasePlanStatusEnum;
import org.jeecg.modules.eam.entity.EamEquipmentPurchasePlan;
import org.jeecg.modules.eam.mapper.EamEquipmentPurchasePlanMapper;
import org.jeecg.modules.eam.service.IEamEquipmentPurchasePlanService;
import org.jeecg.modules.system.service.ISysBusinessCodeRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 
/**
 * @Description: eam_equipment_purchase_plan
 * @Author: jeecg-boot
 * @Date:   2025-06-18
 * @Version: V1.0
 */
@Service
public class EamEquipmentPurchasePlanServiceImpl extends ServiceImpl<EamEquipmentPurchasePlanMapper, EamEquipmentPurchasePlan> implements IEamEquipmentPurchasePlanService {
 
    @Autowired
    private ISysBusinessCodeRuleService sysBusinessCodeRuleService;
 
    @Override
    public void savePurchasePlan(EamEquipmentPurchasePlan eamEquipmentPurchasePlan) {
        eamEquipmentPurchasePlan.setPlanCode(sysBusinessCodeRuleService.generateBusinessCodeSeq("EquipmentPurchasePlanRule"));
        eamEquipmentPurchasePlan.setPlanStatus(EquipmentPurchasePlanStatusEnum.NEWLY.name());
        eamEquipmentPurchasePlan.setDelFlag(CommonConstant.DEL_FLAG_0);
        save(eamEquipmentPurchasePlan);
    }
}