|
@@ -3,15 +3,15 @@
|
|
|
<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, auditStatus, shopId, name, alias, discription, seoKeyword, image,
|
|
|
+ insert into cm_baike_product (commodityType, publishSource, auditStatus,onlineStatus, shopId, name, alias, discription, seoKeyword, image,
|
|
|
authLink,authQrCode, advantage,disadvantage, principle, brand,
|
|
|
producePlace, marketTime,company, nmpaTime, adaptiveMan,
|
|
|
- unAdaptiveMan, aroundOperation,basePv, actualPv, typeId,
|
|
|
+ unAdaptiveMan, aroundOperation,basePv, actualPv, typeId, emptyNum,
|
|
|
topPosition, status,addTime)
|
|
|
- VALUES (#{commodityType}, #{publishSource}, #{auditStatus}, #{shopId}, #{name}, #{alias}, #{discription}, #{seoKeyword}, #{image},
|
|
|
+ VALUES (#{commodityType}, #{publishSource}, #{auditStatus}, #{onlineStatus}, #{shopId}, #{name}, #{alias}, #{discription}, #{seoKeyword}, #{image},
|
|
|
#{authLink},#{authQrCode}, #{advantage},#{disadvantage}, #{principle}, #{brand},
|
|
|
#{producePlace}, #{marketTime},#{company}, #{nmpaTime}, #{adaptiveMan},
|
|
|
- #{unAdaptiveMan}, #{aroundOperation},#{basePv}, #{actualPv}, #{typeId}, null,
|
|
|
+ #{unAdaptiveMan}, #{aroundOperation},#{basePv}, #{actualPv}, #{typeId}, #{emptyNum}, null,
|
|
|
#{status}, NOW());
|
|
|
</insert>
|
|
|
<insert id="insertProductParam">
|
|
@@ -47,8 +47,10 @@
|
|
|
unAdaptiveMan = #{unAdaptiveMan},
|
|
|
aroundOperation = #{aroundOperation},
|
|
|
typeId = #{typeId},
|
|
|
+ emptyNum = #{emptyNum},
|
|
|
status = #{status},
|
|
|
- auditStatus = #{auditStatus}
|
|
|
+ auditStatus = #{auditStatus},
|
|
|
+ onlineStatus = #{onlineStatus}
|
|
|
where id = #{productId};
|
|
|
</update>
|
|
|
<update id="updateBaikeProductStatus">
|
|
@@ -101,7 +103,9 @@
|
|
|
cbt.name as typeName,
|
|
|
p.actualPv,
|
|
|
p.auditStatus,
|
|
|
+ p.onlineStatus,
|
|
|
p.failReason,
|
|
|
+ p.emptyNum,
|
|
|
p.publishTime,
|
|
|
p.addTime,
|
|
|
p.status
|
|
@@ -117,9 +121,15 @@
|
|
|
<if test="typeId != null">
|
|
|
and typeId = #{typeId}
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ and p.status = #{status}
|
|
|
+ </if>
|
|
|
<if test="auditStatus != null">
|
|
|
and auditStatus = #{auditStatus}
|
|
|
</if>
|
|
|
+ <if test="onlineStatus != null">
|
|
|
+ and onlineStatus = #{onlineStatus}
|
|
|
+ </if>
|
|
|
order by p.addTime desc
|
|
|
</select>
|
|
|
<select id="getParamList" resultType="com.caimei365.user.model.po.BaikeProductParamPo">
|