| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog; |
| | | import org.jeecg.modules.eam.constant.AssetStatusEnum; |
| | | import org.jeecg.modules.eam.constant.EquipmentMaintenanceStatus; |
| | | import org.jeecg.modules.eam.constant.EquipmentOperationTagEnum; |
| | | import org.jeecg.modules.eam.constant.EquipmentRepairStatus; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamEquipmentExtend; |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean saveEquipment(EamEquipment eamEquipment) { |
| | | @EquipmentHistoryLog(operationTag = EquipmentOperationTagEnum.ACCEPTANCE, businessTable = "eam_equipment") |
| | | public EamEquipment saveEquipment(EamEquipment eamEquipment) { |
| | | if (eamEquipment == null) { |
| | | return false; |
| | | return null; |
| | | } |
| | | //资产状态默认 正常 |
| | | eamEquipment.setAssetStatus(AssetStatusEnum.NORMAL.name()); |
| | |
| | | equipmentExtendService.save(eamEquipmentExtend); |
| | | |
| | | //插入设备履历 TODO |
| | | return true; |
| | | return eamEquipment; |
| | | } |
| | | } |