Sfoglia il codice sorgente

修改商城图片

jk-GitHub-coder 4 anni fa
parent
commit
b85d1514e3

+ 2 - 2
YijiaRestful/src/main/java/com/platform/yijia/pojo/IntegralShopPic.java

@@ -8,8 +8,8 @@ import lombok.Data;
 @Data
 public class IntegralShopPic {
     private Integer id;                 //'商品主键id',
-    private String imgName;           //'图片名称',
-    private String imgUrl;              //'图片地址',
+    private String name;           //'图片名称',
+    private String url;              //'图片地址',
     private String imgStatus;            //'图片状态',
     private Integer stationId;          //'油站ID',
     private String stationName;         //油站名称

+ 4 - 4
YijiaRestful/src/main/resources/mapper/IntegralShopPicMapper.xml

@@ -4,8 +4,8 @@
   <!--积分规则返回结果-->
   <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.IntegralShopPic">
       <id     column="id"                     jdbcType="INTEGER" property="id" />
-      <result column="img_name"               jdbcType="VARCHAR" property="imgName" />
-      <result column="img_url"                jdbcType="VARCHAR" property="imgUrl" />
+      <result column="name"                   jdbcType="VARCHAR" property="name" />
+      <result column="url"                    jdbcType="VARCHAR" property="url" />
       <result column="img_status"             jdbcType="VARCHAR" property="imgStatus" />
       <result column="station_id"             jdbcType="INTEGER" property="stationId" />
       <result column="station_name"           jdbcType="VARCHAR" property="stationName" />
@@ -15,8 +15,8 @@
   <select id="getIntegralShopPicList" resultMap="BaseResultMap" parameterType="com.platform.yijia.pojo.IntegralShopPic">
     SELECT
         id,
-        img_name,
-        img_url,
+        name,
+        url,
         img_status,
         station_id,
         station_name