Browse Source

feat: 部门功能改造;

hanchaolong 1 tuần trước cách đây
mục cha
commit
d71df34d19

+ 18 - 0
jd-logistics-api/jd-logistics-api-system/src/main/java/com/ruoyi/system/api/domain/SysDept.java

@@ -55,6 +55,24 @@ public class SysDept extends BaseEntity
     /** 子部门 */
     private List<SysDept> children = new ArrayList<SysDept>();
 
+    /** 开票名称 */
+    private String invoiceName;
+
+    /** 税号 */
+    private String invoiceNum;
+
+    /** 税率 */
+    private String rateValue;
+
+    /** 开户银行 */
+    private String openBank;
+
+    /** 银行账号 */
+    private String bankAccount;
+
+    /** 公司地址 */
+    private String companyAddress;
+
     public Long getDeptId()
     {
         return deptId;

+ 26 - 1
jd-logistics-modules/jd-logistics-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -20,10 +20,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<result property="createTime" column="create_time" />
 		<result property="updateBy"   column="update_by"   />
 		<result property="updateTime" column="update_time" />
+		<result property="invoiceName" column="invoice_name" />
+		<result property="invoiceNum" column="invoice_num" />
+		<result property="rateValue" column="rate_value" />
+		<result property="openBank" column="open_bank" />
+		<result property="bankAccount" column="bank_account" />
+		<result property="companyAddress" column="company_address" />
 	</resultMap>
 	
 	<sql id="selectDeptVo">
-        select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time 
+        select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
+        d.invoice_name, d.invoice_num, d.rate_value, d.open_bank, d.bank_account, d.company_address
         from sys_dept d
     </sql>
     
@@ -97,6 +104,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="email != null and email != ''">email,</if>
  			<if test="status != null">status,</if>
  			<if test="createBy != null and createBy != ''">create_by,</if>
+  			<if test="invoiceName != null and invoiceName != ''">invoice_name,</if>
+  			<if test="invoiceNum != null and invoiceNum != ''">invoice_num,</if>
+  			<if test="rateValue != null and rateValue != ''">rate_value,</if>
+  			<if test="openBank != null and openBank != ''">open_bank,</if>
+  			<if test="bankAccount != null and bankAccount != ''">bank_account,</if>
+  			<if test="companyAddress != null and companyAddress != ''">company_address,</if>
  			create_time
  		)values(
  			<if test="deptId != null and deptId != 0">#{deptId},</if>
@@ -109,6 +122,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="email != null and email != ''">#{email},</if>
  			<if test="status != null">#{status},</if>
  			<if test="createBy != null and createBy != ''">#{createBy},</if>
+  			<if test="invoiceName != null and invoiceName != ''">#{invoiceName},</if>
+  			<if test="invoiceNum != null and invoiceNum != ''">#{invoiceNum},</if>
+  			<if test="rateValue != null and rateValue != ''">#{rateValue},</if>
+  			<if test="openBank != null and openBank != ''">#{openBank},</if>
+  			<if test="bankAccount != null and bankAccount != ''">#{bankAccount},</if>
+  			<if test="companyAddress != null and companyAddress != ''">#{companyAddress},</if>
  			sysdate()
  		)
 	</insert>
@@ -125,6 +144,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="email != null">email = #{email},</if>
  			<if test="status != null and status != ''">status = #{status},</if>
  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
+            <if test="invoiceName != null and invoiceName != ''">invoice_name = #{invoiceName},</if>
+            <if test="invoiceNum != null and invoiceNum != ''">invoice_num = #{invoiceNum},</if>
+            <if test="rateValue != null and rateValue != ''">rate_value = #{rateValue},</if>
+            <if test="openBank != null and openBank != ''">open_bank = #{openBank},</if>
+            <if test="bankAccount != null and bankAccount != ''">bank_account = #{bankAccount},</if>
+            <if test="companyAddress != null and companyAddress != ''">company_address = #{companyAddress},</if>
  			update_time = sysdate()
  		</set>
  		where dept_id = #{deptId}