Aslee 3 лет назад
Родитель
Сommit
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">
 
     <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,
                                       producePlace, marketTime,company, nmpaTime, adaptiveMan,
                                       unAdaptiveMan, aroundOperation,basePv, actualPv, typeId,
                                       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},
                 #{producePlace}, #{marketTime},#{company}, #{nmpaTime}, #{adaptiveMan},
                 #{unAdaptiveMan}, #{aroundOperation},#{basePv}, #{actualPv}, #{typeId}, null,
@@ -47,7 +47,8 @@
             unAdaptiveMan   = #{unAdaptiveMan},
             aroundOperation = #{aroundOperation},
             typeId          = #{typeId},
-            status          = #{status}
+            status          = #{status},
+            auditStatus     = #{auditStatus}
         where id = #{productId};
     </update>
     <update id="updateBaikeProductStatus">
@@ -92,7 +93,7 @@
         where id = #{productId} and delFlag = 0
     </select>
     <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 id="getBaikeProductList" resultType="com.caimei365.user.model.vo.BaikeProductListVo">
         select p.id     as productId,
@@ -100,6 +101,7 @@
                cbt.name as typeName,
                p.actualPv,
                p.auditStatus,
+               p.failReason,
                p.publishTime,
                p.addTime,
                p.status