| | |
| | | ) |
| | | </insert> |
| | | |
| | | <insert id="saveAccount" parameterType="Map"> |
| | | insert into account( |
| | | amount,acct_type,obj_id,acct_id,acct_name,b_id,obj_type,part_id |
| | | ) values ( |
| | | #{amount},#{acctType},#{objId},#{acctId},#{acctName},'-1',#{objType},#{partId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | <!-- 查询账户信息(Business) add by wuxw 2018-07-03 --> |
| | | <select id="getBusinessAccountInfo" parameterType="Map" resultType="Map"> |
| | |
| | | <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 != ''"> |
| | | t.obj_id= #{objId}, |
| | | and t.obj_id = #{objId} |
| | | </if> |
| | | </update> |
| | | |