| | |
| | | where a.state=2 |
| | | </select> |
| | | |
| | | <update id="UpdateByIdAndState"> |
| | | UPDATE yd_order s |
| | | SET s.state = #{state} |
| | | WHERE |
| | | id = #{id} |
| | | </update> |
| | | |
| | | <select id="selectOrderByMemberIdAndId" resultType="com.xcong.excoin.modules.yunding.vo.YdOrderVo"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | yd_order a |
| | | left join yd_product b on b.id = a.product_id |
| | | where a.member_id = #{memberId} |
| | | and a.id = #{id} |
| | | </select> |
| | | |
| | | <select id="getAgentList" resultType="com.xcong.excoin.modules.yunding.vo.AgentVo"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | yd_basic_level_setting a |
| | | ORDER BY a.id ASC |
| | | </select> |
| | | |
| | | <update id="updateAgentLevel"> |
| | | UPDATE member s |
| | | SET s.agent_level = #{levelId} |
| | | WHERE |
| | | s.id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |