|
@@ -7,7 +7,7 @@
|
|
|
<result column="name" property="purchaseProductName"/>
|
|
|
<result column="shopName" property="shopName"/>
|
|
|
<result column="shopID" property="shopId"/>
|
|
|
- <result column="price1" property="price"/>
|
|
|
+ <result column="price" property="price"/>
|
|
|
</resultMap>
|
|
|
<sql id="purchaseProductColumns">
|
|
|
a.id AS "id",
|
|
@@ -43,7 +43,7 @@
|
|
|
|
|
|
<select id="findList" resultType="PurchaseProduct" >
|
|
|
SELECT b.name shopName ,b.`shopID` shopId,a.name purchaseProductName,
|
|
|
- a.`price1` price,a.`productID` productId,a.productCode productNo,a.mainImage image
|
|
|
+ a.price,a.`productID` productId,a.productCode productNo,a.mainImage image
|
|
|
,a.costCheckFlag costCheckFlag,a.costPrice costPrice,a.costProportional costProportional, a.normalPrice AS normalPrice
|
|
|
,a.ladderPriceFlag as ladderPriceFlag
|
|
|
,a.includedTax AS includedTax, a.invoiceType AS invoiceType, a.taxPoint AS taxRate, a.supplierTaxPoint AS supplierTaxRate,
|
|
@@ -125,7 +125,7 @@
|
|
|
)
|
|
|
</insert>
|
|
|
<select id="getPurchaseProductByCtId" resultMap="resultShop">
|
|
|
- SELECT a.* ,b.name shopName , c.name ,c.price1 price FROM bp_product a LEFT JOIN shop b ON a.shopId=b.`shopID` JOIN product c ON a.productId =c.productid
|
|
|
+ SELECT a.* ,b.name shopName , c.name ,c.price FROM bp_product a LEFT JOIN shop b ON a.shopId=b.`shopID` JOIN product c ON a.productId =c.productid
|
|
|
WHERE a.`contractId` =#{contractId}
|
|
|
AND a.delFlag = 0
|
|
|
and c.productCategory = 1
|
|
@@ -156,8 +156,8 @@
|
|
|
</select>
|
|
|
<select id="findSencondProductPage" resultType="com.caimei.modules.bulkpurchase.entity.PurchaseProduct">
|
|
|
SELECT b.name shopName ,b.`shopID` shopId,a.name purchaseProductName,
|
|
|
- a.`price1` price,a.`productID` productId,a.productCode productNo,a.mainImage image
|
|
|
- ,a.costCheckFlag costCheckFlag,a.costPrice costPrice,a.costProportional costProportional, a.price0 AS normalPrice
|
|
|
+ a.price,a.`productID` productId,a.productCode productNo,a.mainImage image
|
|
|
+ ,a.costCheckFlag costCheckFlag,a.costPrice costPrice,a.costProportional costProportional, a.normalPrice
|
|
|
,a.productCategory as "productCategory",cshd.secondHandType as "secondHandType",a.ladderPriceFlag
|
|
|
,a.includedTax,a.invoiceType
|
|
|
FROM product a LEFT JOIN shop b ON b.shopID=a.shopID
|