Aslee 3 年之前
父节点
当前提交
cba3e1080b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/java/com/caimei/www/pojo/baike/BaikeType.java
  2. 1 1
      src/main/resources/mapper/BaseMapper.xml

+ 1 - 1
src/main/java/com/caimei/www/pojo/baike/BaikeType.java

@@ -13,6 +13,6 @@ import java.util.List;
  */
 @Data
 public class BaikeType implements Serializable {
-    private Integer id;
+    private Integer typeId;
     private String name;
 }

+ 1 - 1
src/main/resources/mapper/BaseMapper.xml

@@ -64,7 +64,7 @@
         where if(#{commodityType} = 1,productStatus,instrumentStatus) = 1
     </select>
     <select id="getBaikeTypeList" resultType="com.caimei.www.pojo.baike.BaikeType">
-        select id, name
+        select id as typeId, name
         from cm_baike_type
         where if(#{commodityType} = 1, typeSort = 1, typeSort = 2) and status = 1
         order by -sort desc,addTime desc