| | |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="hasMoney !=null and hasMoney != ''"> |
| | | and t.amount > 0 |
| | | </if> |
| | | <if test="acctType !=null and acctType != ''"> |
| | | and t.acct_type= #{acctType} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="objIds !=null "> |
| | | and t.obj_id in |
| | | <foreach collection="objIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="acctIds !=null "> |
| | | and t.acct_id in |
| | | <foreach collection="acctIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="acctId !=null and acctId != ''"> |
| | | and t.acct_id= #{acctId} |
| | |
| | | and t.obj_type= #{objType} |
| | | </if> |
| | | <if test="partId !=null and partId != ''"> |
| | | and t.obj_type= #{partId} |
| | | and t.part_id= #{partId} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="hasMoney !=null and hasMoney != ''"> |
| | | and t.amount > 0 |
| | | </if> |
| | | <if test="acctType !=null and acctType != ''"> |
| | | and t.acct_type= #{acctType} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="acctIds !=null "> |
| | | and t.acct_id in |
| | | <foreach collection="acctIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="acctId !=null and acctId != ''"> |
| | | and t.acct_id= #{acctId} |
| | |
| | | and t.obj_type= #{objType} |
| | | </if> |
| | | <if test="partId !=null and partId != ''"> |
| | | and t.obj_type= #{partId} |
| | | and t.part_id= #{partId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | |
| | |
| | | and t.acct_id= #{acctId} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId}, |
| | | and t.obj_id = #{objId} |
| | | </if> |
| | | </update> |
| | | |