|
@@ -16,7 +16,6 @@
|
|
a.costType AS "costType",
|
|
a.costType AS "costType",
|
|
a.costPrice AS "costPrice",
|
|
a.costPrice AS "costPrice",
|
|
a.costProportional AS "costProportional",
|
|
a.costProportional AS "costProportional",
|
|
- a.postageType AS "postageType",
|
|
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
a.addTime AS "addTime",
|
|
a.addTime AS "addTime",
|
|
a.delFlag AS "delFlag",
|
|
a.delFlag AS "delFlag",
|
|
@@ -69,13 +68,7 @@
|
|
AND a.organizeId = #{organizeId}
|
|
AND a.organizeId = #{organizeId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
- <choose>
|
|
|
|
- <when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
|
- ORDER BY ${page.orderBy}
|
|
|
|
- </when>
|
|
|
|
- <otherwise>
|
|
|
|
- </otherwise>
|
|
|
|
- </choose>
|
|
|
|
|
|
+ order by a.addTime desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findAllList" resultType="CmOrganizeProduct">
|
|
<select id="findAllList" resultType="CmOrganizeProduct">
|
|
@@ -114,7 +107,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="findProductByProductId" resultType="com.caimei.modules.weisha.entity.CmOrganizeProduct">
|
|
<select id="findProductByProductId" resultType="com.caimei.modules.weisha.entity.CmOrganizeProduct">
|
|
select productID as productId, ladderPriceFlag,price1 as price,ifnull(includedTax,2) as includedTax,invoiceType,taxPoint as clubTaxPoint,supplierTaxPoint as shopTaxPoint,minBuyNumber,costCheckFlag as costType,
|
|
select productID as productId, ladderPriceFlag,price1 as price,ifnull(includedTax,2) as includedTax,invoiceType,taxPoint as clubTaxPoint,supplierTaxPoint as shopTaxPoint,minBuyNumber,costCheckFlag as costType,
|
|
- costPrice,costProportional,ifnull(freePostFlag,2) as postageType
|
|
|
|
|
|
+ costPrice,costProportional
|
|
from product
|
|
from product
|
|
where productID = #{productId}
|
|
where productID = #{productId}
|
|
</select>
|
|
</select>
|
|
@@ -140,7 +133,6 @@
|
|
costType,
|
|
costType,
|
|
costPrice,
|
|
costPrice,
|
|
costProportional,
|
|
costProportional,
|
|
- postageType,
|
|
|
|
addTime
|
|
addTime
|
|
) VALUES (
|
|
) VALUES (
|
|
#{organizeId},
|
|
#{organizeId},
|
|
@@ -155,7 +147,6 @@
|
|
#{costType},
|
|
#{costType},
|
|
#{costPrice},
|
|
#{costPrice},
|
|
#{costProportional},
|
|
#{costProportional},
|
|
- #{postageType},
|
|
|
|
#{addTime}
|
|
#{addTime}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -178,7 +169,6 @@
|
|
costType = #{costType},
|
|
costType = #{costType},
|
|
costPrice = #{costPrice},
|
|
costPrice = #{costPrice},
|
|
costProportional = #{costProportional},
|
|
costProportional = #{costProportional},
|
|
- postageType = #{postageType},
|
|
|
|
status = #{status},
|
|
status = #{status},
|
|
addTime = #{addTime},
|
|
addTime = #{addTime},
|
|
delFlag = #{delFlag}
|
|
delFlag = #{delFlag}
|