diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/ProductLevelController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ProductLevelController.java index c240faf..9db5589 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/controller/ProductLevelController.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ProductLevelController.java @@ -31,7 +31,7 @@ import java.util.Map; * 产品等级 表 前端控制器 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @RestController @RequestMapping("/code/productLevel") diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/ScenesController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ScenesController.java index 2123fba..4e3b2f3 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/controller/ScenesController.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/ScenesController.java @@ -31,7 +31,7 @@ import java.util.Map; * 场景 表 前端控制器 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @RestController @RequestMapping("/code/scenes") diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WorkingTimeController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WorkingTimeController.java index 3f686d5..e252c91 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WorkingTimeController.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WorkingTimeController.java @@ -31,7 +31,7 @@ import java.util.Map; * 班次时间段 表 前端控制器 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @RestController @RequestMapping("/code/workingTime") diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductLevelDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductLevelDTO.java index 3d12c3d..071a7cc 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductLevelDTO.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductLevelDTO.java @@ -14,7 +14,7 @@ import java.math.BigDecimal; * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @ApiModel(value = "产品等级 表DTO对象") @@ -30,7 +30,7 @@ public class ProductLevelDTO implements Serializable { private String productName; @ApiModelProperty(value = "产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @ApiModelProperty(value = "备注") private String remark; @@ -59,4 +59,7 @@ public class ProductLevelDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "产品等级代码") + private String code; + } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ScenesDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ScenesDTO.java index 556ce06..d7bdad7 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ScenesDTO.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ScenesDTO.java @@ -14,7 +14,7 @@ import java.math.BigDecimal; * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @ApiModel(value = "场景 表DTO对象") @@ -56,4 +56,7 @@ public class ScenesDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "场景code") + private String code; + } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WorkingTimeDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WorkingTimeDTO.java index 1186829..faff8c2 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WorkingTimeDTO.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WorkingTimeDTO.java @@ -14,7 +14,7 @@ import java.math.BigDecimal; * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @Data @ApiModel(value = "班次时间段 表DTO对象") @@ -62,4 +62,7 @@ public class WorkingTimeDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "班次代码") + private String code; + } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/ProductLevel.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/ProductLevel.java index 67da65f..b29ac97 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/entity/ProductLevel.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/ProductLevel.java @@ -14,7 +14,7 @@ import lombok.Data; *

* * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @TableName("t_product_level") @@ -30,7 +30,7 @@ public class ProductLevel implements Serializable { private String productName; @ApiModelProperty("产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @ApiModelProperty("备注") private String remark; @@ -60,6 +60,9 @@ public class ProductLevel implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("产品等级代码") + private String code; + public static final String ID = "id"; @@ -85,4 +88,6 @@ public class ProductLevel implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/Scenes.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/Scenes.java index d96f038..560a43a 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/entity/Scenes.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/Scenes.java @@ -14,7 +14,7 @@ import lombok.Data; *

* * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @TableName("t_scenes") @@ -57,6 +57,9 @@ public class Scenes implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("场景code") + private String code; + public static final String ID = "id"; @@ -80,4 +83,6 @@ public class Scenes implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WorkingTime.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WorkingTime.java index e6f74bf..e54f960 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WorkingTime.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WorkingTime.java @@ -14,7 +14,7 @@ import lombok.Data; *

* * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @Data @TableName("t_working_time") @@ -63,6 +63,9 @@ public class WorkingTime implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("班次代码") + private String code; + public static final String ID = "id"; @@ -90,4 +93,6 @@ public class WorkingTime implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductLevelExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductLevelExcel.java index 8ad3cdb..fd4b4f4 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductLevelExcel.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductLevelExcel.java @@ -12,7 +12,7 @@ import java.util.Date; * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data public class ProductLevelExcel { @@ -21,7 +21,7 @@ public class ProductLevelExcel { @Excel(name = "产品名") private String productName; @Excel(name = "产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") @@ -40,5 +40,7 @@ public class ProductLevelExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "产品等级代码") + private String code; } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ScenesExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ScenesExcel.java index 94d77e6..f18771c 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ScenesExcel.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ScenesExcel.java @@ -12,7 +12,7 @@ import java.util.Date; * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data public class ScenesExcel { @@ -38,5 +38,7 @@ public class ScenesExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "场景code") + private String code; } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WorkingTimeExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WorkingTimeExcel.java index 8aaba12..7be393e 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WorkingTimeExcel.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WorkingTimeExcel.java @@ -12,7 +12,7 @@ import java.util.Date; * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @Data public class WorkingTimeExcel { @@ -42,5 +42,7 @@ public class WorkingTimeExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "班次代码") + private String code; } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.java index c84eb4a..f982095 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.java @@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Mapper; * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Mapper public interface ProductLevelMapper extends BaseDao { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.xml index 439294d..3b54c93 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.xml +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductLevelMapper.xml @@ -14,6 +14,7 @@ + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.java index cc3eb84..79d4c27 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.java @@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Mapper; * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Mapper public interface ScenesMapper extends BaseDao { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.xml index 83c76ec..d613a64 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.xml +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ScenesMapper.xml @@ -13,6 +13,7 @@ + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.java index e0b908b..87dab83 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.java @@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Mapper; * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @Mapper public interface WorkingTimeMapper extends BaseDao { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.xml index e4a0e4c..74a5fdf 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.xml +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WorkingTimeMapper.xml @@ -15,6 +15,7 @@ + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ProductLevelmysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ProductLevelmysql.sql index e1582c7..949ffdb 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ProductLevelmysql.sql +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/ProductLevelmysql.sql @@ -1,7 +1,7 @@ -- 菜单初始SQL -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1737669381515964417, 1067246875800000035, '产品等级 表', 'basic/productLevel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669381515964418, 1737669381515964417, '查看', NULL, 'basic:productLevel:page,basic:productLevel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669381515964419, 1737669381515964417, '新增', NULL, 'basic:productLevel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669381515964420, 1737669381515964417, '修改', NULL, 'basic:productLevel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669381515964421, 1737669381515964417, '删除', NULL, 'basic:productLevel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669381515964422, 1737669381515964417, '导出', NULL, 'basic:productLevel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1740170405581496322, 1067246875800000035, '产品等级 表', 'code/productLevel', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170405581496323, 1740170405581496322, '查看', NULL, 'code:productLevel:page,code:productLevel:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170405581496324, 1740170405581496322, '新增', NULL, 'code:productLevel:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170405581496325, 1740170405581496322, '修改', NULL, 'code:productLevel:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170405581496326, 1740170405581496322, '删除', NULL, 'code:productLevel:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170405581496327, 1740170405581496322, '导出', NULL, 'code:productLevel:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/Scenesmysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/Scenesmysql.sql index 67050e6..bf96a1b 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/Scenesmysql.sql +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/Scenesmysql.sql @@ -1,7 +1,7 @@ -- 菜单初始SQL -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1737669220261810177, 1067246875800000035, '场景 表', 'code/scenes', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669220261810178, 1737669220261810177, '查看', NULL, 'code:scenes:page,code:scenes:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669220261810179, 1737669220261810177, '新增', NULL, 'code:scenes:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669220261810180, 1737669220261810177, '修改', NULL, 'code:scenes:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669220261810181, 1737669220261810177, '删除', NULL, 'code:scenes:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737669220261810182, 1737669220261810177, '导出', NULL, 'code:scenes:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1740173054175444994, 1067246875800000035, '场景 表', 'code/scenes', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740173054175444995, 1740173054175444994, '查看', NULL, 'code:scenes:page,code:scenes:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740173054175444996, 1740173054175444994, '新增', NULL, 'code:scenes:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740173054175444997, 1740173054175444994, '修改', NULL, 'code:scenes:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740173054175444998, 1740173054175444994, '删除', NULL, 'code:scenes:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740173054175444999, 1740173054175444994, '导出', NULL, 'code:scenes:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WorkingTimemysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WorkingTimemysql.sql index 4aa356d..f73f7a8 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WorkingTimemysql.sql +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WorkingTimemysql.sql @@ -1,7 +1,7 @@ -- 菜单初始SQL -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1737360876993064962, 1067246875800000035, '班次时间段 表', 'code/workingTime', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737360876993064963, 1737360876993064962, '查看', NULL, 'code:workingTime:page,code:workingTime:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737360876993064964, 1737360876993064962, '新增', NULL, 'code:workingTime:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737360876993064965, 1737360876993064962, '修改', NULL, 'code:workingTime:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737360876993064966, 1737360876993064962, '删除', NULL, 'code:workingTime:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1737360876993064967, 1737360876993064962, '导出', NULL, 'code:workingTime:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1740170256717230082, 1067246875800000035, '班次时间段 表', 'code/workingTime', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170256717230083, 1740170256717230082, '查看', NULL, 'code:workingTime:page,code:workingTime:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170256717230084, 1740170256717230082, '新增', NULL, 'code:workingTime:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170256717230085, 1740170256717230082, '修改', NULL, 'code:workingTime:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170256717230086, 1740170256717230082, '删除', NULL, 'code:workingTime:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1740170256717230087, 1740170256717230082, '导出', NULL, 'code:workingTime:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/ProductLevelServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/ProductLevelServiceBiz.java index 224e2e3..5bc03e5 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/ProductLevelServiceBiz.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/ProductLevelServiceBiz.java @@ -8,7 +8,7 @@ import com.cnbm.generator.code.entity.ProductLevel; * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ public interface ProductLevelServiceBiz extends CrudService { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/ScenesServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/ScenesServiceBiz.java index df71773..43c67cd 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/ScenesServiceBiz.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/ScenesServiceBiz.java @@ -8,7 +8,7 @@ import com.cnbm.generator.code.entity.Scenes; * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ public interface ScenesServiceBiz extends CrudService { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WorkingTimeServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WorkingTimeServiceBiz.java index 7acc6d9..f2a91ad 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/WorkingTimeServiceBiz.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WorkingTimeServiceBiz.java @@ -8,7 +8,7 @@ import com.cnbm.generator.code.entity.WorkingTime; * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ public interface WorkingTimeServiceBiz extends CrudService { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductLevelServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductLevelServiceBizImpl.java index b28a466..c5d9199 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductLevelServiceBizImpl.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductLevelServiceBizImpl.java @@ -15,7 +15,7 @@ import java.util.Map; * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Service public class ProductLevelServiceBizImpl extends CrudServiceImpl implements ProductLevelServiceBiz { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ScenesServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ScenesServiceBizImpl.java index af1dcb4..9f3f243 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ScenesServiceBizImpl.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ScenesServiceBizImpl.java @@ -15,7 +15,7 @@ import java.util.Map; * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Service public class ScenesServiceBizImpl extends CrudServiceImpl implements ScenesServiceBiz { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WorkingTimeServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WorkingTimeServiceBizImpl.java index 782020c..e0b0704 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WorkingTimeServiceBizImpl.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WorkingTimeServiceBizImpl.java @@ -15,7 +15,7 @@ import java.util.Map; * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-20 + * @since 2023-12-28 */ @Service public class WorkingTimeServiceBizImpl extends CrudServiceImpl implements WorkingTimeServiceBiz { diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/ProductLevelController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/ProductLevelController.java index b0d2dcd..85ce24c 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/ProductLevelController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/ProductLevelController.java @@ -46,7 +46,8 @@ public class ProductLevelController { @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , - @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "name", value = "产品等级名", paramType = "query", dataTypeClass = String.class) }) // @PreAuthorize("@ex.hasAuthority('basic:productLevel:page')") public Result> page(@ApiIgnore @RequestParam Map params){ diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/ScenesController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/ScenesController.java index 2d0fed6..b0531e2 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/ScenesController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/ScenesController.java @@ -46,7 +46,8 @@ public class ScenesController { @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , - @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), + @ApiImplicitParam(name = "name", value = "场景名", paramType = "query", dataTypeClass = String.class) }) // @PreAuthorize("@ex.hasAuthority('basic:scenes:page')") public Result> page(@ApiIgnore @RequestParam Map params){ diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/WorkingTimeController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/WorkingTimeController.java index 1f8cff5..77adc6a 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/WorkingTimeController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/WorkingTimeController.java @@ -48,7 +48,8 @@ public class WorkingTimeController { @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) , @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) , - @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) + @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class) , + @ApiImplicitParam(name = "name", value = "班次名", paramType = "query", dataTypeClass = String.class) }) public Result> page(@ApiIgnore @RequestParam Map params){ PageData page = workingTimeService.page(params); diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/ProductLevelDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/ProductLevelDTO.java index 07fd7d8..52e7504 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/dto/ProductLevelDTO.java +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/ProductLevelDTO.java @@ -7,17 +7,19 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; +import java.math.BigDecimal; + /** * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @ApiModel(value = "产品等级 表DTO对象") public class ProductLevelDTO implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; @@ -28,7 +30,7 @@ public class ProductLevelDTO implements Serializable { private String productName; @ApiModelProperty(value = "产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @ApiModelProperty(value = "备注") private String remark; @@ -57,4 +59,7 @@ public class ProductLevelDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "产品等级代码") + private String code; + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/ScenesDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/ScenesDTO.java index 0bf0f7d..7ccd8a4 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/dto/ScenesDTO.java +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/ScenesDTO.java @@ -7,17 +7,19 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; +import java.math.BigDecimal; + /** * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @ApiModel(value = "场景 表DTO对象") public class ScenesDTO implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; @@ -54,4 +56,7 @@ public class ScenesDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "场景code") + private String code; + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WorkingTimeDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WorkingTimeDTO.java index 34e6bb8..d30025b 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/dto/WorkingTimeDTO.java +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WorkingTimeDTO.java @@ -1,6 +1,5 @@ package com.cnbm.packing.dto; -import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -8,17 +7,19 @@ import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; +import java.math.BigDecimal; + /** * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-19 + * @since 2023-12-28 */ @Data @ApiModel(value = "班次时间段 表DTO对象") public class WorkingTimeDTO implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; @@ -29,11 +30,9 @@ public class WorkingTimeDTO implements Serializable { private String orderName; @ApiModelProperty(value = "班次开始时间, 0点 - 24点") - @JsonFormat(pattern = "HH:mm:ss") private LocalDateTime beginTime; @ApiModelProperty(value = "班次结束时间, 0点 - 24点") - @JsonFormat(pattern = "HH:mm:ss") private LocalDateTime endTime; @ApiModelProperty(value = "备注") @@ -63,4 +62,7 @@ public class WorkingTimeDTO implements Serializable { @ApiModelProperty(value = "版本号") private Integer version; + @ApiModelProperty(value = "班次代码") + private String code; + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/ProductLevel.java b/ym-packing/src/main/java/com/cnbm/packing/entity/ProductLevel.java index a9d5ddb..b3ece78 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/entity/ProductLevel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/ProductLevel.java @@ -2,20 +2,19 @@ package com.cnbm.packing.entity; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import java.io.Serializable; -import java.time.LocalDateTime; - /** *

* 产品等级 表 *

* * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @TableName("t_product_level") @@ -31,7 +30,7 @@ public class ProductLevel implements Serializable { private String productName; @ApiModelProperty("产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @ApiModelProperty("备注") private String remark; @@ -61,6 +60,9 @@ public class ProductLevel implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("产品等级代码") + private String code; + public static final String ID = "id"; @@ -86,4 +88,6 @@ public class ProductLevel implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/Scenes.java b/ym-packing/src/main/java/com/cnbm/packing/entity/Scenes.java index 5c1041a..81e22dc 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/entity/Scenes.java +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/Scenes.java @@ -2,20 +2,19 @@ package com.cnbm.packing.entity; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import java.io.Serializable; -import java.time.LocalDateTime; - /** *

* 场景 表 *

* * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data @TableName("t_scenes") @@ -58,6 +57,9 @@ public class Scenes implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("场景code") + private String code; + public static final String ID = "id"; @@ -81,4 +83,6 @@ public class Scenes implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WorkingTime.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WorkingTime.java index 216027c..562bb80 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/entity/WorkingTime.java +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WorkingTime.java @@ -2,20 +2,19 @@ package com.cnbm.packing.entity; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import java.io.Serializable; -import java.time.LocalDateTime; - /** *

* 班次时间段 表 *

* * @author codeGenerator - * @since 2023-12-19 + * @since 2023-12-28 */ @Data @TableName("t_working_time") @@ -64,6 +63,9 @@ public class WorkingTime implements Serializable { @ApiModelProperty("版本号") private Integer version; + @ApiModelProperty("班次代码") + private String code; + public static final String ID = "id"; @@ -91,4 +93,6 @@ public class WorkingTime implements Serializable { public static final String VERSION = "version"; + public static final String CODE = "code"; + } diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/ProductLevelExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/ProductLevelExcel.java index 75feecf..10786dc 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/excel/ProductLevelExcel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/ProductLevelExcel.java @@ -4,12 +4,15 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; /** * 产品等级 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data public class ProductLevelExcel { @@ -18,7 +21,7 @@ public class ProductLevelExcel { @Excel(name = "产品名") private String productName; @Excel(name = "产品等级,A1/A2/A3/A4/NK") - private LocalDateTime productLevel; + private String productLevel; @Excel(name = "备注") private String remark; @Excel(name = "删除标志,是否有效:1 可用 0不可用") @@ -37,5 +40,7 @@ public class ProductLevelExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "产品等级代码") + private String code; } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/ScenesExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/ScenesExcel.java index 978c5c8..14b1f78 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/excel/ScenesExcel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/ScenesExcel.java @@ -4,12 +4,15 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; /** * 场景 表 * * @author codeGenerator - * @since 2023-12-21 + * @since 2023-12-28 */ @Data public class ScenesExcel { @@ -35,5 +38,7 @@ public class ScenesExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "场景code") + private String code; } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WorkingTimeExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WorkingTimeExcel.java index 42243aa..fedd8d7 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/excel/WorkingTimeExcel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WorkingTimeExcel.java @@ -4,12 +4,15 @@ import cn.afterturn.easypoi.excel.annotation.Excel; import lombok.Data; import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; /** * 班次时间段 表 * * @author codeGenerator - * @since 2023-12-19 + * @since 2023-12-28 */ @Data public class WorkingTimeExcel { @@ -39,5 +42,7 @@ public class WorkingTimeExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; + @Excel(name = "班次代码") + private String code; } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ProductLevelServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ProductLevelServiceBizImpl.java index 2c15270..4be3850 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ProductLevelServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ProductLevelServiceBizImpl.java @@ -33,10 +33,10 @@ public class ProductLevelServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ - String id = (String)params.get("id"); + String name = (String) params.get("name"); QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.eq(StringUtils.isNotBlank(id), "id", id); + wrapper.like(StringUtils.isNotBlank(name), ProductLevel.PRODUCT_LEVEL, name); return wrapper; } diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ScenesServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ScenesServiceBizImpl.java index b420778..c330667 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ScenesServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ScenesServiceBizImpl.java @@ -33,10 +33,10 @@ public class ScenesServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ - String id = (String)params.get("id"); + String name = (String) params.get("name"); QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.eq(StringUtils.isNotBlank(id), "id", id); + wrapper.like(StringUtils.isNotBlank(name), Scenes.SCENES_NAME, name); return wrapper; } diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WorkingTimeServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WorkingTimeServiceBizImpl.java index d9e035d..a01b516 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WorkingTimeServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WorkingTimeServiceBizImpl.java @@ -12,7 +12,6 @@ import com.cnbm.packing.dto.WorkingTimeDTO; import com.cnbm.packing.entity.WorkingTime; import com.cnbm.packing.mapper.WorkingTimeMapper; import com.cnbm.packing.service.WorkingTimeServiceBiz; -import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -40,10 +39,10 @@ public class WorkingTimeServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ - String id = (String)params.get("id"); + String name = (String) params.get("name"); QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.eq(StringUtils.isNotBlank(id), "id", id); + wrapper.like(StringUtils.isNotBlank(name), WorkingTime.ORDER_NAME, name); return wrapper; }