| | |
| | | <include refid="Base_Column_List"/> |
| | | from sh_order_operation_log |
| | | <where> |
| | | <if test="criteria.userId != null"> |
| | | and user_id = #{criteria.userId} |
| | | <if test="criteria.username != null"> |
| | | and username like concat('%',#{criteria.username},'%') |
| | | </if> |
| | | <if test="criteria.userType != null"> |
| | | and user_type = #{criteria.userType} |
| | |
| | | </where> |
| | | order by log_id desc |
| | | </select> |
| | | <select id="getByOrderNum" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sh_order_operation_log |
| | | where order_num = #{orderNum} order by log_id desc |
| | | </select> |
| | | </mapper> |