|
@@ -20,10 +20,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<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>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
<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
|
|
from sys_dept d
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -97,6 +104,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="email != null and email != ''">email,</if>
|
|
<if test="email != null and email != ''">email,</if>
|
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</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
|
|
create_time
|
|
|
)values(
|
|
)values(
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
<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="email != null and email != ''">#{email},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</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()
|
|
sysdate()
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
@@ -125,6 +144,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="email != null">email = #{email},</if>
|
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</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()
|
|
update_time = sysdate()
|
|
|
</set>
|
|
</set>
|
|
|
where dept_id = #{deptId}
|
|
where dept_id = #{deptId}
|