diff --git a/nflg-qms-admin/src/main/java/com/nflg/qms/admin/controller/QmsExemptMaterialController.java b/nflg-qms-admin/src/main/java/com/nflg/qms/admin/controller/QmsExemptMaterialController.java index 2a4400b3..01df4cda 100644 --- a/nflg-qms-admin/src/main/java/com/nflg/qms/admin/controller/QmsExemptMaterialController.java +++ b/nflg-qms-admin/src/main/java/com/nflg/qms/admin/controller/QmsExemptMaterialController.java @@ -110,7 +110,7 @@ public class QmsExemptMaterialController extends BaseController { */ @PostMapping("toggleEnable") public ApiResult toggleEnable(@RequestBody ToggleEnableQO request) { - exemptMaterialService.toggleEnable(request.getId(), request.getEnableStatus()); + exemptMaterialService.toggleEnable(request.getId(), request.getEnable()); return ApiResult.success(); } diff --git a/nflg-qms-admin/src/main/java/com/nflg/qms/admin/service/QualityNotificationControllerService.java b/nflg-qms-admin/src/main/java/com/nflg/qms/admin/service/QualityNotificationControllerService.java index 205d9550..0805103e 100644 --- a/nflg-qms-admin/src/main/java/com/nflg/qms/admin/service/QualityNotificationControllerService.java +++ b/nflg-qms-admin/src/main/java/com/nflg/qms/admin/service/QualityNotificationControllerService.java @@ -69,7 +69,7 @@ public class QualityNotificationControllerService { .setTitle(request.getTitle()) .setTargetType(request.getTargetType()) .setContent(request.getContent()) - .setState(1) // 默认启用 + .setEnable(true) // 默认启用 .setCreateById(operatorId) .setCreateBy(operator) .setCreateTime(now) @@ -165,7 +165,7 @@ public class QualityNotificationControllerService { vo.setTitle(entity.getTitle()); vo.setTargetType(entity.getTargetType()); vo.setContent(entity.getContent()); - vo.setState(entity.getState()); + vo.setEnable(entity.getEnable()); vo.setCreateById(entity.getCreateById()); vo.setCreateBy(entity.getCreateBy()); vo.setCreateTime(entity.getCreateTime()); @@ -253,8 +253,8 @@ public class QualityNotificationControllerService { vo.setTargetTypeName(vo.getTargetType() == 1 ? "全部" : "手动选择"); } // 启用状态名称 - if (vo.getState() != null) { - vo.setStateName(vo.getState() == 1 ? "启用" : "禁用"); + if (vo.getEnable() != null) { + vo.setEnableName(vo.getEnable() ? "启用" : "禁用"); } } @@ -272,7 +272,7 @@ public class QualityNotificationControllerService { qualityNotificationService.lambdaUpdate() .eq(QmsQualityNotification::getId, id) - .set(QmsQualityNotification::getState, enable ? 1 : 2) + .set(QmsQualityNotification::getEnable, enable) .set(QmsQualityNotification::getUpdateById, operatorId) .set(QmsQualityNotification::getUpdateBy, operator) .set(QmsQualityNotification::getUpdateTime, now) diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsExemptMaterialSearchQO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsExemptMaterialSearchQO.java index 42ced5e8..9dd14df9 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsExemptMaterialSearchQO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsExemptMaterialSearchQO.java @@ -31,9 +31,9 @@ public class QmsExemptMaterialSearchQO extends PageQO { private Integer auditStatus; /** - * 启用状态;false 禁用;true 启用 + * 启用状态:true=启用,false=禁用 */ - private Boolean enableStatus; + private Boolean enable; /** * 有效开始日期 - 起始 diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsQualityNotificationSearchQO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsQualityNotificationSearchQO.java index 9e6f2f45..95367ca6 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsQualityNotificationSearchQO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/QmsQualityNotificationSearchQO.java @@ -21,7 +21,7 @@ public class QmsQualityNotificationSearchQO extends SearchBaseQO { private Long notificationTypeId; /** - * 启用状态:1=启用,2=禁用 + * 启用状态:true=启用,false=禁用 */ - private Integer state; + private Boolean enable; } diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/ToggleEnableQO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/ToggleEnableQO.java index 30f96afe..f730f55c 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/ToggleEnableQO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/qo/ToggleEnableQO.java @@ -9,5 +9,5 @@ import lombok.Data; public class ToggleEnableQO { private Long id; - private Boolean enableStatus; + private Boolean enable; } diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsExemptMaterialVO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsExemptMaterialVO.java index 3c976f29..b28e7df9 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsExemptMaterialVO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsExemptMaterialVO.java @@ -51,9 +51,9 @@ public class QmsExemptMaterialVO { private String rejectReason; /** - * 启用状态;false 禁用;true 启用 + * 启用状态:true=启用,false=禁用 */ - private Boolean enableStatus; + private Boolean enable; /** * 免检模式;0 永久;1 周期 diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsQualityNotificationVO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsQualityNotificationVO.java index 913c3dc0..4a994c5e 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsQualityNotificationVO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/QmsQualityNotificationVO.java @@ -44,14 +44,14 @@ public class QmsQualityNotificationVO { private String content; /** - * 启用状态:1=启用,2=禁用 + * 启用状态:true=启用,false=禁用 */ - private Integer state; + private Boolean enable; /** * 启用状态名称 */ - private String stateName; + private String enableName; /** * 创建人ID diff --git a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsExemptMaterial.java b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsExemptMaterial.java index ddc43f7f..4e1c53d4 100644 --- a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsExemptMaterial.java +++ b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsExemptMaterial.java @@ -44,9 +44,9 @@ public class QmsExemptMaterial implements Serializable { private Integer auditStatus; /** - * 启用状态;false 禁用;true 启用 + * 启用状态:true=启用,false=禁用 */ - private Boolean enableStatus; + private Boolean enable; /** * 免检模式;0 永久;1 周期 diff --git a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsQualityNotification.java b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsQualityNotification.java index 8bd57777..73be20c0 100644 --- a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsQualityNotification.java +++ b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/entity/QmsQualityNotification.java @@ -47,9 +47,9 @@ public class QmsQualityNotification implements Serializable { private String content; /** - * 启用状态:1=启用,2=禁用 + * 启用状态:true=启用,false=禁用 */ - private Integer state; + private Boolean enable; /** * 创建人ID diff --git a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/IQmsExemptMaterialService.java b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/IQmsExemptMaterialService.java index 6a5c41b9..cb3cd358 100644 --- a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/IQmsExemptMaterialService.java +++ b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/IQmsExemptMaterialService.java @@ -38,7 +38,7 @@ public interface IQmsExemptMaterialService extends IService { /** * 启用/禁用切换 */ - void toggleEnable(Long id, Boolean enableStatus); + void toggleEnable(Long id, Boolean enable); /** * 审核免检物料 diff --git a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/impl/QmsExemptMaterialServiceImpl.java b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/impl/QmsExemptMaterialServiceImpl.java index cf1c7fb2..eb2e1d2f 100644 --- a/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/impl/QmsExemptMaterialServiceImpl.java +++ b/nflg-wms-repository/src/main/java/com/nflg/wms/repository/service/impl/QmsExemptMaterialServiceImpl.java @@ -85,7 +85,7 @@ public class QmsExemptMaterialServiceImpl extends ServiceImpl AND em.audit_status = #{request.auditStatus} - - AND em.enable_status = #{request.enableStatus} + + AND em.enable = #{request.enable} AND em.valid_start_date >= #{request.validStartDateBegin} @@ -80,7 +80,7 @@ em.material_no, qm.material_desc, em.audit_status, - em.enable_status, + em.enable, em.exempt_mode, em.valid_start_date, em.valid_end_date, @@ -112,7 +112,7 @@ em.material_no, qm.material_desc, em.audit_status, - em.enable_status, + em.enable, em.exempt_mode, em.valid_start_date, em.valid_end_date, diff --git a/nflg-wms-repository/src/main/resources/mapper/QmsQualityNotificationMapper.xml b/nflg-wms-repository/src/main/resources/mapper/QmsQualityNotificationMapper.xml index 4073fda4..88da2bfc 100644 --- a/nflg-wms-repository/src/main/resources/mapper/QmsQualityNotificationMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/QmsQualityNotificationMapper.xml @@ -9,7 +9,7 @@ q.title, q.target_type, q.content, - q.state, + q.enable, q.create_by_id, q.create_by, q.create_time, @@ -25,8 +25,8 @@ AND q.notification_type_id = #{request.notificationTypeId} - - AND q.state = #{request.state} + + AND q.enable = #{request.enable} AND q.create_time >= #{request.startDate}