| | |
| | | where uie_uid = #{userInfo.id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateGoldCoin">UPDATE yeshi_ec_user_info_extra SET uie_gold_coin = |
| | | IF(uie_gold_coin IS NULL,${goldCoin}, uie_gold_coin + ${goldCoin}) |
| | | IF(uie_gold_coin IS NULL,#{goldCoin}, uie_gold_coin + #{goldCoin}) |
| | | WHERE uie_id = #{id} |
| | | </update> |
| | | |
| | | <update id="addGoldCoinByUid"> |
| | | UPDATE yeshi_ec_user_info_extra SET uie_gold_coin = IF(uie_gold_coin IS NULL,#{goldCoin}, uie_gold_coin + #{goldCoin}) |
| | | WHERE uie_uid = #{uid} |
| | | </update> |
| | | |
| | | |
| | | <select id="getInfoExtraByUid" resultMap="BaseResultMap">SELECT * FROM |
| | | yeshi_ec_user_info_extra WHERE uie_uid = #{uid} |
| | | </select> |