Browse Source

客户收款

fubin 2 years ago
parent
commit
83174e3b5f
1 changed files with 41 additions and 47 deletions
  1. 41 47
      src/main/java/com/dk/mdm/mapper/mac/AccountItemMapper.xml

+ 41 - 47
src/main/java/com/dk/mdm/mapper/mac/AccountItemMapper.xml

@@ -5,62 +5,59 @@
     <!-- 通用设置 -->
     <!-- 通用查询列 -->
     <sql id="Base_Column_List">
-        item_id, acc_item_type, object_id, org_id, staff_id, biznis_type, biznis_id, biznis_no, acc_date, rec_status, amt_rec, amt_pay, amt_should, amt_handle, amt_waive, amt_residue, remarks, make_staff, make_time, flg_valid
+        item_id, acc_item_type, object_id, org_id, staff_id, biznis_type, biznis_id, biznis_no, acc_date, rec_status, amt_rec, amt_pay, amt_should, amt_handle, amt_waive, amt_residue, remarks, make_staff, make_time, flg_valid, cp_id
     </sql>
 
     <!-- 通用查询映射结果 -->
     <resultMap id="BaseResultMap" type="com.dk.mdm.model.pojo.mac.AccountItem">
         <id column="item_id" property="itemId"/>
-                <result column="acc_item_type" property="accItemType"/>
-                <result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
-                <result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
-                <result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
-                <result column="biznis_type" property="biznisType"/>
-                <result column="biznis_id" property="biznisId" typeHandler="UuidTypeHandler"/>
-                <result column="biznis_no" property="biznisNo"/>
-                <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
-                <result column="rec_status" property="recStatus"/>
-                <result column="amt_rec" property="amtRec"/>
-                <result column="amt_pay" property="amtPay"/>
-                <result column="amt_should" property="amtShould"/>
-                <result column="amt_handle" property="amtHandle"/>
-                <result column="amt_waive" property="amtWaive"/>
-                <result column="amt_residue" property="amtResidue"/>
-                <result column="remarks" property="remarks"/>
-                <result column="make_staff" property="makeStaff" typeHandler="UuidTypeHandler"/>
-                <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
-                <result column="flg_valid" property="flgValid"/>
-                <result column="cp_id" property="cpId"/>
+            <result column="acc_item_type" property="accItemType"/>
+            <result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
+            <result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
+            <result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
+            <result column="biznis_type" property="biznisType"/>
+            <result column="biznis_id" property="biznisId" typeHandler="UuidTypeHandler"/>
+            <result column="biznis_no" property="biznisNo"/>
+            <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
+            <result column="rec_status" property="recStatus"/>
+            <result column="amt_rec" property="amtRec"/>
+            <result column="amt_pay" property="amtPay"/>
+            <result column="amt_should" property="amtShould"/>
+            <result column="amt_handle" property="amtHandle"/>
+            <result column="amt_waive" property="amtWaive"/>
+            <result column="amt_residue" property="amtResidue"/>
+            <result column="remarks" property="remarks"/>
+            <result column="make_staff" property="makeStaff" typeHandler="UuidTypeHandler"/>
+            <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
+            <result column="flg_valid" property="flgValid"/>
+            <result column="cp_id" property="cpId"/>
     </resultMap>
 
     <!-- 通用查询映射结果 -->
     <resultMap id="BaseResultMapResponse" type="com.dk.mdm.model.response.mac.AccountItemResponse">
         <id column="item_id" property="itemId"/>
-                <result column="acc_item_type" property="accItemType"/>
-                <result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
-                <result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
-                <result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
-                <result column="biznis_type" property="biznisType"/>
-                <result column="biznis_id" property="biznisId" typeHandler="UuidTypeHandler"/>
-                <result column="biznis_no" property="biznisNo"/>
-                <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
-                <result column="rec_status" property="recStatus"/>
-                <result column="amt_rec" property="amtRec"/>
-                <result column="amt_pay" property="amtPay"/>
-                <result column="amt_should" property="amtShould"/>
-                <result column="amt_handle" property="amtHandle"/>
-                <result column="amt_waive" property="amtWaive"/>
-                <result column="amt_residue" property="amtResidue"/>
-                <result column="remarks" property="remarks"/>
-                <result column="make_staff" property="makeStaff" typeHandler="UuidTypeHandler"/>
-                <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
-                <result column="flg_valid" property="flgValid"/>
-                <result column="cp_id" property="cpId"/>
+            <result column="acc_item_type" property="accItemType"/>
+            <result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
+            <result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
+            <result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
+            <result column="biznis_type" property="biznisType"/>
+            <result column="biznis_id" property="biznisId" typeHandler="UuidTypeHandler"/>
+            <result column="biznis_no" property="biznisNo"/>
+            <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
+            <result column="rec_status" property="recStatus"/>
+            <result column="amt_rec" property="amtRec"/>
+            <result column="amt_pay" property="amtPay"/>
+            <result column="amt_should" property="amtShould"/>
+            <result column="amt_handle" property="amtHandle"/>
+            <result column="amt_waive" property="amtWaive"/>
+            <result column="amt_residue" property="amtResidue"/>
+            <result column="remarks" property="remarks"/>
+            <result column="make_staff" property="makeStaff" typeHandler="UuidTypeHandler"/>
+            <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
+            <result column="flg_valid" property="flgValid"/>
+            <result column="cp_id" property="cpId"/>
     </resultMap>
 
-
-
-
     <!-- 通用条件列 -->
     <sql id="Condition">
             <if test="accItemType != null and accItemType != ''">
@@ -158,7 +155,6 @@
         <include refid="Condition"/>
     </select>
 
-
     <!--查询应收和收款汇总(根据制单员权限)-->
     <select id="getReceivableAccountSum" resultType="Map">
         SELECT SUM
@@ -183,7 +179,6 @@
         </if>
     </select>
 
-
     <!-- 查询应收账款明细 -->
     <select id="getReceivableAccountItem" resultMap="BaseResultMapResponse">
         SELECT t.item_id,
@@ -286,7 +281,6 @@
         </if>
     </select>
 
-
     <!-- 根据主键查询表t_mac_account_item的一行数据 -->
     <select id="selectById" resultMap="BaseResultMap">
         SELECT