refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK
主要改动: - SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org - SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type - SQL: biz_meeting.support_unit_name → org_name - SQL: biz_person.work_unit → org_id (FK) - 后端: 新 BizOrg entity/mapper/service/controller - 后端: BizProject/BizMeeting 字段重命名 - 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件 - 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id) - 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub) - 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits) - 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步) - 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名 - 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商) - 前端: 全工程 execution → executor (company type / role / person unit_type)
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.business.mapper.BizLaborVoucherMapper">
|
||||
<resultMap type="BizLaborVoucher" id="BizLaborVoucherResult">
|
||||
<id property="voucherId" column="voucher_id" />
|
||||
<result property="voucherNo" column="voucher_no" />
|
||||
<result property="meetingName" column="meeting_name" />
|
||||
<result property="expertName" column="expert_name" />
|
||||
<result property="idCard" column="id_card" />
|
||||
<result property="bankAccount" column="bank_account" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="submitDate" column="submit_date" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
</resultMap>
|
||||
<sql id="selectFields">
|
||||
select voucher_id, voucher_no, meeting_name, expert_name, id_card, bank_account, amount, submit_date, audit_status, create_by, create_time, update_by, update_time
|
||||
from biz_labor_voucher
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BizLaborVoucherResult" parameterType="String">
|
||||
<include refid="selectFields"/>
|
||||
where voucher_id = #{voucherId}
|
||||
</select>
|
||||
<select id="selectList" resultMap="BizLaborVoucherResult" parameterType="BizLaborVoucher">
|
||||
<include refid="selectFields"/>
|
||||
<where>
|
||||
<if test="amount != null"> and amount = #{amount}</if>
|
||||
</where>
|
||||
order by voucher_id desc
|
||||
</select>
|
||||
<insert id="insert" parameterType="BizLaborVoucher">
|
||||
insert into biz_labor_voucher
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="voucherId != null and voucherId != ''">voucher_id,</if>
|
||||
<if test="amount != null">amount,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="voucherId != null and voucherId != ''">#{voucherId},</if>
|
||||
<if test="amount != null">#{amount},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKey" parameterType="BizLaborVoucher">
|
||||
update biz_labor_voucher
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="voucherNo != null and voucherNo != ''">voucher_no = #{voucherNo},</if>
|
||||
<if test="meetingId != null and meetingId != ''">meeting_id = #{meetingId},</if>
|
||||
<if test="meetingName != null and meetingName != ''">meeting_name = #{meetingName},</if>
|
||||
<if test="expertName != null and expertName != ''">expert_name = #{expertName},</if>
|
||||
<if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
|
||||
<if test="bankAccount != null and bankAccount != ''">bank_account = #{bankAccount},</if>
|
||||
<if test="submitDate != null and submitDate != ''">submit_date = #{submitDate},</if>
|
||||
<if test="auditStatus != null and auditStatus != ''">audit_status = #{auditStatus},</if>
|
||||
<if test="auditOpinion != null and auditOpinion != ''">audit_opinion = #{auditOpinion},</if>
|
||||
<if test="auditBy != null and auditBy != ''">audit_by = #{auditBy},</if>
|
||||
<if test="auditTime != null and auditTime != ''">audit_time = #{auditTime},</if>
|
||||
<if test="amount != null">amount = #{amount},</if>
|
||||
</trim>
|
||||
where voucher_id = #{voucherId}
|
||||
</update>
|
||||
<delete id="deleteByPrimaryKey" parameterType="String">
|
||||
delete from biz_labor_voucher where voucher_id = #{voucherId}
|
||||
</delete>
|
||||
<delete id="deleteByPrimaryKeys" parameterType="String">
|
||||
delete from biz_labor_voucher where voucher_id in
|
||||
<foreach collection="voucherIds" item="voucherId" open="(" separator="," close=")">
|
||||
#{voucherId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user