|
|
|
@ -235,6 +235,10 @@ public class BaseEquipmentServiceImpl implements IBaseEquipmentService {
|
|
|
|
|
List<String> auxiliaryEquipmentRightList = baseEquipment.getAuxiliaryEquipmentRightData();
|
|
|
|
|
for (String code : auxiliaryEquipmentRightList) {
|
|
|
|
|
EquBindAuxiliaryEquipment equBindAuxiliaryEquipment = new EquBindAuxiliaryEquipment();
|
|
|
|
|
//查询绑定的名字 设备类型
|
|
|
|
|
BaseEquipment dto = baseEquipmentMapper.selectBaseEquipmentByEquipmentCode(code);
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentName(dto.getEquipmentName());
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentType(dto.getEquipmentTypeCode());
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentCode(code);
|
|
|
|
|
equBindAuxiliaryEquipment.setEquipmentCode(baseEquipment.getEquipmentCode());
|
|
|
|
|
equBindAuxiliaryEquipment.setCreateBy(SecurityUtils.getUsername());
|
|
|
|
@ -348,6 +352,10 @@ public class BaseEquipmentServiceImpl implements IBaseEquipmentService {
|
|
|
|
|
for (String code : auxiliaryEquipmentRightList) {
|
|
|
|
|
EquBindAuxiliaryEquipment equBindAuxiliaryEquipment = new EquBindAuxiliaryEquipment();
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentCode(code);
|
|
|
|
|
//查询名字 设备类型
|
|
|
|
|
BaseEquipment dto = baseEquipmentMapper.selectBaseEquipmentByEquipmentCode(code);
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentName(dto.getEquipmentName());
|
|
|
|
|
equBindAuxiliaryEquipment.setAuxiliaryEquipmentType(dto.getEquipmentTypeCode());
|
|
|
|
|
equBindAuxiliaryEquipment.setEquipmentCode(baseEquipment.getEquipmentCode());
|
|
|
|
|
equBindAuxiliaryEquipment.setEquipmentName(baseEquipment.getEquipmentName());
|
|
|
|
|
equBindAuxiliaryEquipment.setCreateBy(SecurityUtils.getUsername());
|
|
|
|
|