设备类型选择

highway
A0010407 1 year ago
parent e450cf0a4f
commit 42ec2bd570

@ -100,4 +100,15 @@ public class BaseEquipmentController extends BaseController {
public AjaxResult remove(@PathVariable Long[] equipmentIds) { public AjaxResult remove(@PathVariable Long[] equipmentIds) {
return toAjax(baseEquipmentService.deleteBaseEquipmentByEquipmentIds(equipmentIds)); return toAjax(baseEquipmentService.deleteBaseEquipmentByEquipmentIds(equipmentIds));
} }
/**
*
*/
@RequiresPermissions("wms:equipment:getEquipmentTypeList")
@GetMapping("/getEquipmentTypeList")
public TableDataInfo getEquipmentTypeList(BaseEquipment baseEquipment) {
List<BaseEquipment> list = baseEquipmentService.getEquipmentTypeList(baseEquipment);
return getDataTable(list);
}
} }

@ -70,4 +70,7 @@ public interface BaseEquipmentMapper {
//查询机器编码关联附属信息 //查询机器编码关联附属信息
List<BaseEquipment> getEquipmentAttachedList(String equipmentCode); List<BaseEquipment> getEquipmentAttachedList(String equipmentCode);
//查询设备类型
List<BaseEquipment> getEquipmentTypeList(BaseEquipment baseEquipment);
} }

@ -60,4 +60,7 @@ public interface IBaseEquipmentService {
boolean checkEquipmentCodeUnique(BaseEquipment baseEquipment); boolean checkEquipmentCodeUnique(BaseEquipment baseEquipment);
boolean checkEquipmentNameUnique(BaseEquipment baseEquipment); boolean checkEquipmentNameUnique(BaseEquipment baseEquipment);
//查询设备类型
List<BaseEquipment> getEquipmentTypeList(BaseEquipment baseEquipment);
} }

@ -168,4 +168,13 @@ public class BaseEquipmentServiceImpl implements IBaseEquipmentService {
return true; return true;
} }
} }
/**
*
*/
@Override
@DS("#header.poolName")
public List<BaseEquipment> getEquipmentTypeList(BaseEquipment baseEquipment) {
return baseEquipmentMapper.getEquipmentTypeList(baseEquipment);
}
} }

@ -216,4 +216,11 @@
and base_equipment.del_flag = '0' and base_equipment.del_flag = '0'
</select> </select>
<select id="getEquipmentTypeList" parameterType="BaseEquipment" resultMap="BaseEquipmentResult">
select equipment_type_code,equipment_type_name
from base_equipment
where del_flag = '0'
group by equipment_type_code,equipment_type_name
</select>
</mapper> </mapper>
Loading…
Cancel
Save