diff --git a/src/main/java/com/spring/modules/part/vo/ProductGroupInformationVo.java b/src/main/java/com/spring/modules/part/vo/ProductGroupInformationVo.java index 64a5145e..1fe7562a 100644 --- a/src/main/java/com/spring/modules/part/vo/ProductGroupInformationVo.java +++ b/src/main/java/com/spring/modules/part/vo/ProductGroupInformationVo.java @@ -12,4 +12,6 @@ import lombok.Data; */ @Data public class ProductGroupInformationVo extends ProductGroupInformationEntity { + + private String typeDesc; } diff --git a/src/main/resources/mapper/part/ProductGroupInformationMapper.xml b/src/main/resources/mapper/part/ProductGroupInformationMapper.xml index 7e75630f..a556f6db 100644 --- a/src/main/resources/mapper/part/ProductGroupInformationMapper.xml +++ b/src/main/resources/mapper/part/ProductGroupInformationMapper.xml @@ -10,6 +10,12 @@ product_group_name, active, type, + (CASE WHEN type = '1' THEN '商品组1' + WHEN type = '2' THEN '商品组2' + WHEN type = '3' THEN '会计组' + when type = '4' THEN '计划人' + ELSE '' + END) as typeDesc, create_by, create_date, update_by,