| | |
| | | <result property="couponId" column="couponId"></result> |
| | | <result property="serviceTime" column="service_time"></result> |
| | | <result property="companyId" column="company_id"/> |
| | | |
| | | |
| | | <association property="shopCoupon" select="com.matrix.system.shopXcx.dao.ShopCouponDao.selectById" |
| | | column="{id=couponId}"></association> |
| | | </resultMap> |
| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="selectProductNameByIds" resultType="java.lang.String"> |
| | | select |
| | | title |
| | | from shop_product |
| | | where id in |
| | | <foreach collection="ids" item="item" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | |
| | | <!-- 根据id 锁表查询--> |
| | | <select id="selectForUpdate" resultMap="ShopProductMap"> |