|
@@ -2,10 +2,10 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei365.order.mapper.BaseMapper">
|
|
|
<select id="getShopNameById" resultType="java.lang.String">
|
|
|
- SELECT `name` FROM shop WHERE shopID = #{shopId}
|
|
|
+ SELECT `name` FROM shop WHERE shopID = #{shopId} LIMIT 1
|
|
|
</select>
|
|
|
<select id="getClubNameById" resultType="java.lang.String">
|
|
|
- SELECT `name` FROM club WHERE clubID = #{clubId}
|
|
|
+ SELECT `name` FROM club WHERE clubID = #{clubId} LIMIT 1
|
|
|
</select>
|
|
|
<insert id="insertUserInvoiceByUserId" parameterType="com.caimei365.order.model.vo.InvoiceVo">
|
|
|
INSERT INTO cm_user_invoiceinfo (userId, invoiceTitle, corporationTaxNum, registeredAddress, registeredPhone, bankAccountNo, openBank)
|
|
@@ -38,13 +38,13 @@
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
<select id="getUserIdByClubId" resultType="java.lang.Integer">
|
|
|
- select userID from user where clubID = #{clubId}
|
|
|
+ select userID from user where clubID = #{clubId} LIMIT 1
|
|
|
</select>
|
|
|
<select id="getIdentityByUserId" resultType="java.lang.Integer">
|
|
|
- select userIdentity from user where userID = #{userId}
|
|
|
+ select userIdentity from user where userID = #{userId} LIMIT 1
|
|
|
</select>
|
|
|
<select id="getUserNameByUserId" resultType="java.lang.String">
|
|
|
- select userName from user where userID = #{userId}
|
|
|
+ select userName from user where userID = #{userId} LIMIT 1
|
|
|
</select>
|
|
|
<select id="getLadderPriceList" resultType="com.caimei365.order.model.vo.LadderPriceVo">
|
|
|
select
|
|
@@ -196,6 +196,15 @@
|
|
|
<select id="getShopIdByproductId" resultType="java.lang.Integer">
|
|
|
SELECT shopID FROM product WHERE productID = #{productId}
|
|
|
</select>
|
|
|
+ <select id="getClauseList" resultType="com.caimei365.order.model.vo.ClauseVo">
|
|
|
+ SELECT
|
|
|
+ id,
|
|
|
+ name,
|
|
|
+ content,
|
|
|
+ clauseType,
|
|
|
+ enabledStatus
|
|
|
+ FROM bp_clause
|
|
|
+ </select>
|
|
|
<insert id="insertDiscernReceipt" keyColumn="id" keyProperty="id" parameterType="com.caimei365.order.model.po.DiscernReceiptPo" useGeneratedKeys="true">
|
|
|
INSERT INTO cm_discern_receipt (payWay, payType, receiptType, receiptStatus, receiptAmount, confirmType,
|
|
|
receiptDate, confirmDate, reviewDate, updateDate, delFlag, rePayFlag, formData)
|