|
|
|
@ -57,6 +57,8 @@ public class BaseEquipmentServiceImpl implements IBaseEquipmentService {
|
|
|
|
|
public int insertBaseEquipment(BaseEquipment baseEquipment) {
|
|
|
|
|
baseEquipment.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
String equipmentTypeName = baseEquipmentMapper.getEquipmentTypeName(baseEquipment);
|
|
|
|
|
String workCenterName = baseEquipmentMapper.getWorkCenterName(baseEquipment);
|
|
|
|
|
baseEquipment.setWorkshopName(workCenterName);
|
|
|
|
|
baseEquipment.setEquipmentTypeName(equipmentTypeName);
|
|
|
|
|
return baseEquipmentMapper.insertBaseEquipment(baseEquipment);
|
|
|
|
|
}
|
|
|
|
@ -71,7 +73,9 @@ public class BaseEquipmentServiceImpl implements IBaseEquipmentService {
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public int updateBaseEquipment(BaseEquipment baseEquipment) {
|
|
|
|
|
baseEquipment.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
String equipmentTypeName = baseEquipmentMapper.getEquipmentTypeName(baseEquipment);
|
|
|
|
|
String equipmentTypeName = baseEquipmentMapper.getEquipmentTypeName(baseEquipment);
|
|
|
|
|
String workCenterName = baseEquipmentMapper.getWorkCenterName(baseEquipment);
|
|
|
|
|
baseEquipment.setWorkshopName(workCenterName);
|
|
|
|
|
baseEquipment.setEquipmentTypeName(equipmentTypeName);
|
|
|
|
|
return baseEquipmentMapper.updateBaseEquipment(baseEquipment);
|
|
|
|
|
}
|
|
|
|
|