|
@@ -7,17 +7,17 @@
|
|
|
<!-- 保存账户信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存账户信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveBusinessAccountInfo" parameterType="Map">
|
|
<insert id="saveBusinessAccountInfo" parameterType="Map">
|
|
|
insert into business_account(
|
|
insert into business_account(
|
|
|
- amount,operate,acct_type,obj_id,acct_id,acct_name,b_id,obj_type,part_id
|
|
|
|
|
|
|
+ amount,operate,acct_type,obj_id,acct_id,acct_name,b_id,obj_type,part_id,link
|
|
|
) values (
|
|
) values (
|
|
|
- #{amount},#{operate},#{acctType},#{objId},#{acctId},#{acctName},#{bId},#{objType},#{partId}
|
|
|
|
|
|
|
+ #{amount},#{operate},#{acctType},#{objId},#{acctId},#{acctName},#{bId},#{objType},#{partId},#{link}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
<insert id="saveAccount" parameterType="Map">
|
|
<insert id="saveAccount" parameterType="Map">
|
|
|
insert into account(
|
|
insert into account(
|
|
|
- amount,acct_type,obj_id,acct_id,acct_name,b_id,obj_type,part_id
|
|
|
|
|
|
|
+ amount,acct_type,obj_id,acct_id,acct_name,b_id,obj_type,part_id,link
|
|
|
) values (
|
|
) values (
|
|
|
- #{amount},#{acctType},#{objId},#{acctId},#{acctName},'-1',#{objType},#{partId}
|
|
|
|
|
|
|
+ #{amount},#{acctType},#{objId},#{acctId},#{acctName},'-1',#{objType},#{partId},#{link}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -25,7 +25,7 @@
|
|
|
<!-- 查询账户信息(Business) add by wuxw 2018-07-03 -->
|
|
<!-- 查询账户信息(Business) add by wuxw 2018-07-03 -->
|
|
|
<select id="getBusinessAccountInfo" parameterType="Map" resultType="Map">
|
|
<select id="getBusinessAccountInfo" parameterType="Map" resultType="Map">
|
|
|
select t.amount,t.operate,t.acct_type,t.acct_type acctType,t.obj_id,t.obj_id objId,t.acct_id,t.acct_id
|
|
select t.amount,t.operate,t.acct_type,t.acct_type acctType,t.obj_id,t.obj_id objId,t.acct_id,t.acct_id
|
|
|
- acctId,t.acct_name,t.acct_name acctName,t.b_id,t.b_id bId,t.obj_type,t.obj_type objType,t.part_id,t.part_id partId
|
|
|
|
|
|
|
+ acctId,t.acct_name,t.acct_name acctName,t.b_id,t.b_id bId,t.obj_type,t.obj_type objType,t.part_id,t.part_id partId,t.link
|
|
|
from business_account t
|
|
from business_account t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="amount !=null and amount != ''">
|
|
<if test="amount !=null and amount != ''">
|
|
@@ -55,6 +55,9 @@
|
|
|
<if test="partId !=null and partId != ''">
|
|
<if test="partId !=null and partId != ''">
|
|
|
and t.obj_type= #{partId}
|
|
and t.obj_type= #{partId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="link !=null and link != ''">
|
|
|
|
|
+ and t.link= #{link}
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -62,8 +65,8 @@
|
|
|
<!-- 保存账户信息至 instance表中 add by wuxw 2018-07-03 -->
|
|
<!-- 保存账户信息至 instance表中 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveAccountInfoInstance" parameterType="Map">
|
|
<insert id="saveAccountInfoInstance" parameterType="Map">
|
|
|
insert into account(
|
|
insert into account(
|
|
|
- amount,acct_type,obj_id,acct_id,status_cd,acct_name,b_id,obj_type,part_id
|
|
|
|
|
- ) select t.amount,t.acct_type,t.obj_id,t.acct_id,'0',t.acct_name,t.b_id,t.obj_type,t.part_id
|
|
|
|
|
|
|
+ amount,acct_type,obj_id,acct_id,status_cd,acct_name,b_id,obj_type,part_id,link
|
|
|
|
|
+ ) select t.amount,t.acct_type,t.obj_id,t.acct_id,'0',t.acct_name,t.b_id,t.obj_type,t.part_id,t.link
|
|
|
from business_account t where
|
|
from business_account t where
|
|
|
1=1
|
|
1=1
|
|
|
<if test="amount !=null and amount != ''">
|
|
<if test="amount !=null and amount != ''">
|
|
@@ -96,7 +99,7 @@
|
|
|
<select id="getAccountInfo" parameterType="Map" resultType="Map">
|
|
<select id="getAccountInfo" parameterType="Map" resultType="Map">
|
|
|
select t.amount,t.acct_type,t.acct_type acctType,t.obj_id,t.obj_id objId,t.acct_id,t.acct_id
|
|
select t.amount,t.acct_type,t.acct_type acctType,t.obj_id,t.obj_id objId,t.acct_id,t.acct_id
|
|
|
acctId,t.status_cd,t.status_cd statusCd,t.acct_name,t.acct_name acctName,t.b_id,t.b_id bId,t.obj_type,t.obj_type
|
|
acctId,t.status_cd,t.status_cd statusCd,t.acct_name,t.acct_name acctName,t.b_id,t.b_id bId,t.obj_type,t.obj_type
|
|
|
- objType,t.create_time createTime,td.`name` acctTypeName,t.part_id,t.part_id partId
|
|
|
|
|
|
|
+ objType,t.create_time createTime,td.`name` acctTypeName,t.part_id,t.part_id partId,t.link
|
|
|
from account t
|
|
from account t
|
|
|
LEFT JOIN t_dict td on t.acct_type = td.status_cd and td.table_name = 'account' and td.table_columns =
|
|
LEFT JOIN t_dict td on t.acct_type = td.status_cd and td.table_name = 'account' and td.table_columns =
|
|
|
'acct_type'
|
|
'acct_type'
|
|
@@ -143,6 +146,9 @@
|
|
|
<if test="partId !=null and partId != ''">
|
|
<if test="partId !=null and partId != ''">
|
|
|
and t.part_id= #{partId}
|
|
and t.part_id= #{partId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="link !=null and link != ''">
|
|
|
|
|
+ and t.link= #{link}
|
|
|
|
|
+ </if>
|
|
|
order by t.create_time desc
|
|
order by t.create_time desc
|
|
|
<if test="page != -1 and page != null ">
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|
|
limit #{page}, #{row}
|
|
@@ -179,6 +185,9 @@
|
|
|
<if test="acctId !=null and acctId != ''">
|
|
<if test="acctId !=null and acctId != ''">
|
|
|
and t.acct_id= #{acctId}
|
|
and t.acct_id= #{acctId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="link !=null and link != ''">
|
|
|
|
|
+ and t.link= #{link}
|
|
|
|
|
+ </if>
|
|
|
<if test="bId !=null and bId != ''">
|
|
<if test="bId !=null and bId != ''">
|
|
|
and t.b_id= #{bId}
|
|
and t.b_id= #{bId}
|
|
|
</if>
|
|
</if>
|
|
@@ -226,6 +235,9 @@
|
|
|
<if test="partId !=null and partId != ''">
|
|
<if test="partId !=null and partId != ''">
|
|
|
and t.part_id= #{partId}
|
|
and t.part_id= #{partId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="link !=null and link != ''">
|
|
|
|
|
+ and t.link= #{link}
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -250,6 +262,9 @@
|
|
|
<if test="objId !=null and objId != ''">
|
|
<if test="objId !=null and objId != ''">
|
|
|
and t.obj_id = #{objId}
|
|
and t.obj_id = #{objId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="link !=null and link != ''">
|
|
|
|
|
+ and t.link= #{link}
|
|
|
|
|
+ </if>
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|