瀏覽代碼

bugfix-供应商百科发布

Aslee 3 年之前
父節點
當前提交
abc315ed2e
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/main/resources/mapper/BaikeProductMapper.xml

+ 6 - 4
src/main/resources/mapper/BaikeProductMapper.xml

@@ -3,12 +3,12 @@
 <mapper namespace="com.caimei365.user.mapper.BaikeProductMapper">
 <mapper namespace="com.caimei365.user.mapper.BaikeProductMapper">
 
 
     <insert id="insertBaikeProduct" parameterType="com.caimei365.user.model.po.BaikeProductPo" keyProperty="productId" useGeneratedKeys="true">
     <insert id="insertBaikeProduct" parameterType="com.caimei365.user.model.po.BaikeProductPo" keyProperty="productId" useGeneratedKeys="true">
-        insert into cm_baike_product (commodityType, publishSource, shopId, name, alias, discription, seoKeyword, image,
+        insert into cm_baike_product (commodityType, publishSource, auditStatus, shopId, name, alias, discription, seoKeyword, image,
                                       authLink,authQrCode, advantage,disadvantage, principle, brand,
                                       authLink,authQrCode, advantage,disadvantage, principle, brand,
                                       producePlace, marketTime,company, nmpaTime, adaptiveMan,
                                       producePlace, marketTime,company, nmpaTime, adaptiveMan,
                                       unAdaptiveMan, aroundOperation,basePv, actualPv, typeId,
                                       unAdaptiveMan, aroundOperation,basePv, actualPv, typeId,
                                       topPosition, status,addTime)
                                       topPosition, status,addTime)
-        VALUES (#{commodityType}, #{publishSource}, #{shopId}, #{name}, #{alias}, #{discription}, #{seoKeyword}, #{image},
+        VALUES (#{commodityType}, #{publishSource}, #{auditStatus}, #{shopId}, #{name}, #{alias}, #{discription}, #{seoKeyword}, #{image},
                 #{authLink},#{authQrCode}, #{advantage},#{disadvantage}, #{principle}, #{brand},
                 #{authLink},#{authQrCode}, #{advantage},#{disadvantage}, #{principle}, #{brand},
                 #{producePlace}, #{marketTime},#{company}, #{nmpaTime}, #{adaptiveMan},
                 #{producePlace}, #{marketTime},#{company}, #{nmpaTime}, #{adaptiveMan},
                 #{unAdaptiveMan}, #{aroundOperation},#{basePv}, #{actualPv}, #{typeId}, null,
                 #{unAdaptiveMan}, #{aroundOperation},#{basePv}, #{actualPv}, #{typeId}, null,
@@ -47,7 +47,8 @@
             unAdaptiveMan   = #{unAdaptiveMan},
             unAdaptiveMan   = #{unAdaptiveMan},
             aroundOperation = #{aroundOperation},
             aroundOperation = #{aroundOperation},
             typeId          = #{typeId},
             typeId          = #{typeId},
-            status          = #{status}
+            status          = #{status},
+            auditStatus     = #{auditStatus}
         where id = #{productId};
         where id = #{productId};
     </update>
     </update>
     <update id="updateBaikeProductStatus">
     <update id="updateBaikeProductStatus">
@@ -92,7 +93,7 @@
         where id = #{productId} and delFlag = 0
         where id = #{productId} and delFlag = 0
     </select>
     </select>
     <select id="getBaikeProductTypeList" resultType="com.caimei365.user.model.vo.BaikeProductTypeVo">
     <select id="getBaikeProductTypeList" resultType="com.caimei365.user.model.vo.BaikeProductTypeVo">
-        select id as typeId, name as typeName from cm_baike_type where status = 1 and typeSort = #{commodityType} order by sort desc,addTime desc
+        select id as typeId, name as typeName from cm_baike_type where status = 1 and typeSort = #{commodityType} order by -sort desc,addTime desc
     </select>
     </select>
     <select id="getBaikeProductList" resultType="com.caimei365.user.model.vo.BaikeProductListVo">
     <select id="getBaikeProductList" resultType="com.caimei365.user.model.vo.BaikeProductListVo">
         select p.id     as productId,
         select p.id     as productId,
@@ -100,6 +101,7 @@
                cbt.name as typeName,
                cbt.name as typeName,
                p.actualPv,
                p.actualPv,
                p.auditStatus,
                p.auditStatus,
+               p.failReason,
                p.publishTime,
                p.publishTime,
                p.addTime,
                p.addTime,
                p.status
                p.status