| | |
| | | incomeId as incomeId, |
| | | orderType as orderType, |
| | | money as money, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time, |
| | | type |
| | | from t_income where money > 0 |
| | | <if test="null != userType"> |
| | | and userType = #{userType} |
| | |
| | | <if test="null != objectId"> |
| | | and objectId = #{objectId} |
| | | </if> |
| | | <if test="null != type"> |
| | | and `type` = #{type} |
| | | <if test="null != type and type.size() > 0"> |
| | | and `type` in |
| | | <foreach collection="type" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by insertTime desc limit #{pageNum}, #{size} |
| | | </select> |