主要改动: - 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)
103 lines
5.9 KiB
XML
103 lines
5.9 KiB
XML
<?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.BizSubmissionMapper">
|
|
<resultMap type="BizSubmission" id="BizSubmissionResult">
|
|
<id property="subId" column="sub_id" />
|
|
<result property="title" column="title" />
|
|
<result property="direction" column="direction" />
|
|
<result property="projectForm" column="project_form" />
|
|
<result property="projectCategory" column="project_category" />
|
|
<result property="designFileUrl" column="design_file_url" />
|
|
<result property="submitterId" column="submitter_id" />
|
|
<result property="submitterName" column="submitter_name" />
|
|
<result property="status" column="status" />
|
|
<result property="remark" column="remark" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
</resultMap>
|
|
<sql id="selectFields">
|
|
select sub_id, title, direction, project_form, project_category, design_file_url, submitter_id, submitter_name, status, remark, create_by, create_time, update_by, update_time
|
|
from biz_submission
|
|
</sql>
|
|
<select id="selectByPrimaryKey" resultMap="BizSubmissionResult" parameterType="String">
|
|
<include refid="selectFields"/>
|
|
where sub_id = #{subId}
|
|
</select>
|
|
<select id="selectList" resultMap="BizSubmissionResult" parameterType="BizSubmission">
|
|
<include refid="selectFields"/>
|
|
<where>
|
|
<if test="submitterId != null and submitterId != ''"> and submitter_id = #{submitterId}</if>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
<if test="direction != null and direction != ''"> and direction = #{direction}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
|
</where>
|
|
order by sub_id desc
|
|
</select>
|
|
<insert id="insert" parameterType="BizSubmission">
|
|
insert into biz_submission
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="subId != null and subId != ''">sub_id,</if>
|
|
<if test="title != null">title,</if>
|
|
<if test="direction != null">direction,</if>
|
|
<if test="projectForm != null">project_form,</if>
|
|
<if test="projectCategory != null">project_category,</if>
|
|
<if test="designFileUrl != null">design_file_url,</if>
|
|
<if test="submitterId != null">submitter_id,</if>
|
|
<if test="submitterName != null">submitter_name,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
create_time,
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
update_time,
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="subId != null and subId != ''">#{subId},</if>
|
|
<if test="title != null">#{title},</if>
|
|
<if test="direction != null">#{direction},</if>
|
|
<if test="projectForm != null">#{projectForm},</if>
|
|
<if test="projectCategory != null">#{projectCategory},</if>
|
|
<if test="designFileUrl != null">#{designFileUrl},</if>
|
|
<if test="submitterId != null">#{submitterId},</if>
|
|
<if test="submitterName != null">#{submitterName},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
sysdate(),
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
sysdate(),
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="BizSubmission">
|
|
update biz_submission
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="submitterId != null and submitterId != ''">submitter_id = #{submitterId},</if>
|
|
<if test="submitterName != null and submitterName != ''">submitter_name = #{submitterName},</if>
|
|
<if test="projectForm != null and projectForm != ''">project_form = #{projectForm},</if>
|
|
<if test="projectCategory != null and projectCategory != ''">project_category = #{projectCategory},</if>
|
|
<if test="designFileUrl != null and designFileUrl != ''">design_file_url = #{designFileUrl},</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="title != null">title = #{title},</if>
|
|
<if test="direction != null">direction = #{direction},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
update_time = sysdate(),
|
|
</trim>
|
|
where sub_id = #{subId}
|
|
</update>
|
|
<delete id="deleteByPrimaryKey" parameterType="String">
|
|
delete from biz_submission where sub_id = #{subId}
|
|
</delete>
|
|
<delete id="deleteByPrimaryKeys" parameterType="String">
|
|
delete from biz_submission where sub_id in
|
|
<foreach collection="subIds" item="subId" open="(" separator="," close=")">
|
|
#{subId}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |