diff --git a/nflg-mobilebroken-admin/src/main/java/com/nflg/mobilebroken/admin/controller/DeviceTypeController.java b/nflg-mobilebroken-admin/src/main/java/com/nflg/mobilebroken/admin/controller/DeviceTypeController.java index bf7e8a7d..3df42a65 100644 --- a/nflg-mobilebroken-admin/src/main/java/com/nflg/mobilebroken/admin/controller/DeviceTypeController.java +++ b/nflg-mobilebroken-admin/src/main/java/com/nflg/mobilebroken/admin/controller/DeviceTypeController.java @@ -15,6 +15,7 @@ import com.nflg.mobilebroken.common.pojo.ApiResult; import com.nflg.mobilebroken.common.pojo.PageData; import com.nflg.mobilebroken.common.pojo.vo.CqmPersonVO; import com.nflg.mobilebroken.common.util.AdminUserUtil; +import com.nflg.mobilebroken.common.util.VUtils; import com.nflg.mobilebroken.repository.entity.ParamConfig; import com.nflg.mobilebroken.repository.entity.TBaseDeviceType; import com.nflg.mobilebroken.repository.service.IParamConfigService; @@ -105,4 +106,15 @@ public class DeviceTypeController extends ControllerBase { return ApiResult.success(baseDeviceTypeService.getCqmPersonList(cqms)); } + /** + * 删除 + * @return + */ + @PostMapping("del") + @ApiMark(moduleName = "设备类型管理", apiName = "删除") + public ApiResult del(@RequestBody List ids){ + VUtils.trueThrow(CollUtil.isEmpty(ids)).throwMessage(STATE.ParamErr,"请选择要删除的数据"); + return ApiResult.success(baseDeviceTypeService.removeBatchByIds(ids)); + } + } diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml index 8c424649..d211b7d1 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml @@ -12,27 +12,29 @@ - and device_no=#{query.deviceNo} + and a.device_no=#{query.deviceNo} - and customer_name=#{query.customerName} + and a.customer_name=#{query.customerName} - and agent_name=#{query.agentName} + and a.agent_name=#{query.agentName} - and model_no=#{query.modelNo} + and a.model_no=#{query.modelNo} - and warranty_state=#{query.warrantyState} + and a.warranty_state=#{query.warrantyState} - and start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <= #{query.warrantyEndDate} + and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <= #{query.warrantyEndDate}