初始代码
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.CrmCustomerMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.CrmLeadMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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.yunzhupaas.base.mapper.CrmOpportunityMapper">
|
||||
<update id="updateByCustomerByCustomerId">
|
||||
update crm_customer set last_followup_date=#{lastFollowupDate} where company_id=#{customerId}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectCustomerBycustomerId" resultType="java.lang.String">
|
||||
select company_name from mdm_company where company_id=#{customerId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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.yunzhupaas.mapper.BigDataMapper">
|
||||
|
||||
<select id="maxCode" resultType="Integer">
|
||||
SELECT MAX(F_EN_CODE) FROM ext_big_data
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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.yunzhupaas.mapper.FlowFormMapper">
|
||||
|
||||
<resultMap id="flowInfo" type="com.yunzhupaas.base.model.flow.FlowTempInfoModel">
|
||||
<id column="F_Id" property="id"/>
|
||||
<result column="F_EnCode" property="enCode"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="findFLowInfo" parameterType="String" resultMap="flowInfo">
|
||||
SELECT ft.F_En_Code as F_EnCode,ft.F_Id as F_Id,F_Enabled_Mark as enabledMark FROM flow_template ft where ft.F_Id =#{tempId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.BcmProjectTypeMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.MdmCompanyBankMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.MdmCompanyContactMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.MdmCompanyMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.MdmContractTypeMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.MdmProjectMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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.yunzhupaas.base.mapper.PcmContractMapper">
|
||||
<insert id="addPcmDocument">
|
||||
insert into pcm_document (document_id,file_size,file_name,file_ext_name,local_path)
|
||||
values (#{fileId},#{fileSize},#{name},#{fileExtension},#{url})
|
||||
</insert>
|
||||
<insert id="addPcmBusinessDocument">
|
||||
insert into pcm_business_document (table_name,business_object_id,document_id)
|
||||
values (#{tableName},#{businessObjectId},#{documentId})
|
||||
</insert>
|
||||
|
||||
|
||||
<delete id="deleteByBusinessObjectId">
|
||||
delete from pcm_business_document where business_object_id=#{businessObjectId} and table_name =#{tableName}
|
||||
</delete>
|
||||
<select id="selectByIdAndTableName" resultType="com.yunzhupaas.base.model.pcmcontract.PcmDocument">
|
||||
select document.document_id fileId,document.file_size fileSize,document.
|
||||
file_name 'name',document.file_ext_name fileExtension,document.local_path url
|
||||
from pcm_business_document business
|
||||
left join pcm_document document on business.document_id=document.document_id
|
||||
where business.table_name=#{tableName} and business.business_object_id=#{id}
|
||||
</select>
|
||||
<select id="selectByFEnCode" resultType="java.lang.String">
|
||||
select f_full_name from base_dictionary_data where f_en_code=#{resourcesName} and f_dictionary_type_id='808608974935952773'
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.Pcm_contract_itemMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.base.mapper.Pcm_payment_planMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,243 @@
|
||||
<?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.yunzhupaas.permission.mapper.AuthorizeMapper">
|
||||
|
||||
<resultMap id="ModuleVO" type="com.yunzhupaas.base.model.module.ModuleModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_parent_id" property="parentId"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_type" property="type"/>
|
||||
<result column="f_url_address" property="urlAddress"/>
|
||||
<result column="f_link_target" property="linkTarget"/>
|
||||
<result column="f_category" property="category"/>
|
||||
<result column="f_icon" property="icon"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
<result column="f_property_json" property="propertyJson"/>
|
||||
<result column="f_system_id" property="systemId"/>
|
||||
<result column="f_description" property="description"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ButtonVO" type="com.yunzhupaas.base.model.button.ButtonModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_parent_id" property="parentId"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_icon" property="icon"/>
|
||||
<result column="f_url_address" property="urlAddress"/>
|
||||
<result column="f_module_id" property="moduleId"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ColumnVO" type="com.yunzhupaas.base.model.column.ColumnModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_parent_id" property="parentId"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_bind_table" property="bindTable"/>
|
||||
<result column="f_bind_table_name" property="bindTableName"/>
|
||||
<result column="f_module_id" property="moduleId"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ResourceVO" type="com.yunzhupaas.base.model.resource.ResourceModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_condition_json" property="conditionJson"/>
|
||||
<result column="f_condition_text" property="conditionText"/>
|
||||
<result column="f_module_id" property="moduleId"/>
|
||||
<result column="f_match_logic" property="matchLogic"/>
|
||||
<result column="f_object_id" property="objectId"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="FormVO" type="com.yunzhupaas.base.model.form.ModuleFormModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_parent_id" property="parentId"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_module_id" property="moduleId"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="SystemVO" type="com.yunzhupaas.base.model.base.SystemBaeModel">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_full_name" property="fullName"/>
|
||||
<result column="f_en_code" property="enCode"/>
|
||||
<result column="f_icon" property="icon"/>
|
||||
<result column="f_property_json" property="propertyJson"/>
|
||||
<result column="f_description" property="description"/>
|
||||
<result column="f_sort_code" property="sortCode"/>
|
||||
<result column="f_enabled_mark" property="enabledMark"/>
|
||||
<result column="f_workflow_enabled" property="workflowEnabled"/>
|
||||
<result column="f_navigation_icon" property="navigationIcon"/>
|
||||
<result column="f_work_logo_icon" property="workLogoIcon"/>
|
||||
<result column="f_creator_time" property="creatorTimes"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="findModule" parameterType="String" resultMap="ModuleVO">
|
||||
SELECT * FROM base_module WHERE 1=1
|
||||
AND (f_id IN
|
||||
<trim suffixOverrides=" OR f_id IN()">
|
||||
<foreach collection="objectId" item="id" index="index" open="(" close=")" >
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR f_id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{id}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
<if test="mark == 1">
|
||||
and f_enabled_mark = #{mark}
|
||||
</if>
|
||||
<if test="systemId != null and systemId.size > 0">
|
||||
and f_system_id in
|
||||
<foreach collection="systemId" item="id" open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
and f_en_code not in
|
||||
<foreach collection="moduleCode" item="urlAddress" open="(" close=")" separator=",">
|
||||
#{urlAddress}
|
||||
</foreach>
|
||||
<if test="moduleAuthorize != null and moduleAuthorize.size > 0">
|
||||
and f_id not in
|
||||
<foreach collection="moduleAuthorize" item="moduleId" open="(" close=")" separator=",">
|
||||
#{moduleId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="moduleUrlAddressAuthorize != null and moduleUrlAddressAuthorize.size > 0">
|
||||
and
|
||||
((f_url_address not in
|
||||
<foreach collection="moduleUrlAddressAuthorize" item="urlAddress" open="(" close=")" separator=",">
|
||||
#{urlAddress}
|
||||
</foreach>
|
||||
)
|
||||
or f_url_address is null
|
||||
)
|
||||
</if>
|
||||
Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findButton" parameterType="String" resultMap="ButtonVO">
|
||||
SELECT * FROM base_module_button WHERE 1=1
|
||||
AND (f_id IN
|
||||
<trim suffixOverrides=" OR f_id IN()">
|
||||
<foreach collection="objectId" item="id" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR f_id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{id}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
and f_enabled_mark = 1 Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="findColumn" parameterType="String" resultMap="ColumnVO">
|
||||
SELECT * FROM base_module_column WHERE 1=1
|
||||
AND (f_id IN
|
||||
<trim suffixOverrides=" OR f_id IN()">
|
||||
<foreach collection="objectId" item="id" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR f_id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{id}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
and f_enabled_mark = 1 Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findForms" parameterType="String" resultMap="FormVO">
|
||||
SELECT * FROM base_module_form WHERE 1=1
|
||||
AND (f_id IN
|
||||
<trim suffixOverrides=" OR f_id IN()">
|
||||
<foreach collection="objectId" item="id" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR f_id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{id}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
and f_enabled_mark = 1 Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findSystem" parameterType="String" resultMap="SystemVO">
|
||||
SELECT * FROM base_system WHERE f_id IN
|
||||
<foreach collection="objectId" item="id" open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
<if test="mark == 1">
|
||||
and f_enabled_mark = #{mark}
|
||||
</if>
|
||||
<if test="enCode != null and enCode != ''">
|
||||
and f_en_code != #{enCode}
|
||||
</if>
|
||||
<if test="moduleAuthorize != null and moduleAuthorize.size > 0">
|
||||
and f_id not in
|
||||
<foreach collection="moduleAuthorize" item="moduleId" open="(" close=")" separator=",">
|
||||
#{moduleId}
|
||||
</foreach>
|
||||
</if>
|
||||
Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findResource" parameterType="String" resultMap="ResourceVO">
|
||||
select s.*, a.f_object_id from base_module_scheme s
|
||||
LEFT JOIN base_authorize a on s.f_id = a.f_item_id
|
||||
where 1=1
|
||||
AND (s.f_id IN
|
||||
<trim suffixOverrides=" OR s.f_id IN()">
|
||||
<foreach collection="objectId" item="id" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR s.f_id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{id}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
and s.f_enabled_mark = 1 Order by s.f_sort_code asc,s.f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findButtonAdmin" parameterType="Integer" resultMap="ButtonVO">
|
||||
SELECT * FROM base_module_button WHERE f_enabled_mark = #{mark} Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findColumnAdmin" parameterType="Integer" resultMap="ColumnVO">
|
||||
SELECT * FROM base_module_column WHERE f_enabled_mark = #{mark} Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findFormsAdmin" parameterType="Integer" resultMap="FormVO">
|
||||
SELECT * FROM base_module_form WHERE f_enabled_mark = #{mark} Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="findResourceAdmin" parameterType="Integer" resultMap="ResourceVO">
|
||||
SELECT * FROM base_module_scheme WHERE f_enabled_mark = #{mark} Order by f_sort_code asc,f_creator_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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.yunzhupaas.message.mapper.ImContentMapper">
|
||||
|
||||
<!-- <update id="SendMessage" parameterType="com.yunzhupaas.system.entity.IMContentEntity">
|
||||
<id column="F_Id" property="id"/>
|
||||
<result column="F_SENDUSERID" property="sendUserId"/>
|
||||
<result column="F_SENDTIME" property="sendTime"/>
|
||||
<result column="F_RECEIVEUSERID" property="receiveUserId"/>
|
||||
<result column="F_RECEIVETIME" property="receiveTime"/>
|
||||
<result column="f_content" property="content"/>
|
||||
<result column="f_content_type" property="contentType"/>
|
||||
<result column="F_STATE" property="state"/>
|
||||
</update>-->
|
||||
<select id="getUnreadList" parameterType="String" resultType="com.yunzhupaas.message.model.ImUnreadNumModel">
|
||||
SELECT * FROM (
|
||||
SELECT SUM(CASE WHEN f_enabled_mark = 0 THEN 1 ELSE 0 END) UnreadNum, f_send_user_id SendUserId, f_receive_user_id ReceiveUserId
|
||||
FROM base_im_content WHERE 1 = 1 AND f_receive_user_id = #{receiveUserId} GROUP BY f_send_user_id, f_receive_user_id
|
||||
) t WHERE UnreadNum > 0
|
||||
</select>
|
||||
|
||||
<select id="getUnreadLists" parameterType="String" resultType="com.yunzhupaas.message.model.ImUnreadNumModel">
|
||||
select f_send_user_id SendUserId, f_content DefaultMessage,f_content_type DefaultMessageType, f_send_time DefaultMessageTime from base_im_content WHERE 1 = 1 AND f_receive_user_id = #{receiveUserId} AND f_enabled_mark = 0 order by f_send_time desc
|
||||
</select>
|
||||
|
||||
<update id="readMessage" parameterType="map">
|
||||
UPDATE base_im_content SET f_enabled_mark = 1, f_receive_time = #{map.receiveTime} WHERE 1 = 1 AND f_enabled_mark = 0 AND f_send_user_id = #{map.sendUserId} AND f_receive_user_id = #{map.receiveUserId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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.yunzhupaas.message.mapper.ImReplyMapper">
|
||||
<resultMap id="imReplyList" type="com.yunzhupaas.message.model.ImReplyListModel">
|
||||
<id column="f_receive_user_id" property="id"/>
|
||||
<result column="f_user_id" property="userId"/>
|
||||
<result column="F_HEAD_ICON" property="headIcon"/>
|
||||
<result column="f_receive_time" property="latestDate"/>
|
||||
<result column="f_content_type" property="messageType"/>
|
||||
<result column="f_content" property="latestMessage"/>
|
||||
<result column="f_delete_user_id" property="deleteUserId"/>
|
||||
<result column="f_delete_mark" property="deleteMark"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getImReplyList" resultMap="imReplyList" parameterType="com.yunzhupaas.message.model.ImReplyListVo">
|
||||
SELECT
|
||||
ir.f_user_id,
|
||||
ir.f_receive_user_id,
|
||||
ir.f_delete_user_id,
|
||||
bu.F_HEAD_ICON,
|
||||
ir.f_receive_time,
|
||||
ic.f_content_type,
|
||||
ic.f_content,
|
||||
ic.f_delete_user_id,
|
||||
ic.f_delete_mark
|
||||
FROM
|
||||
base_im_reply ir
|
||||
LEFT JOIN base_user bu ON ir.f_user_id = bu.F_Id
|
||||
LEFT JOIN base_im_content ic ON ic.f_send_user_id = bu.F_Id
|
||||
AND ir.f_user_id = ic.f_send_user_id
|
||||
AND ir.f_receive_user_id = ic.f_receive_user_id
|
||||
AND ir.f_receive_time = ic.f_send_time
|
||||
AND (ir.f_delete_mark != 1 OR ir.f_delete_mark IS NULL)
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?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.yunzhupaas.message.mapper.MessageMapper">
|
||||
|
||||
<resultMap id="Message" type="com.yunzhupaas.message.entity.MessageReceiveEntity">
|
||||
<id column="f_id" property="id"/>
|
||||
<result column="f_title" property="title"/>
|
||||
<result column="f_type" property="type"/>
|
||||
<result column="f_creator_time" property="creatorTime"/>
|
||||
<result column="f_creator_user_id" property="creatorUserId"/>
|
||||
<result column="f_last_modify_time" property="lastModifyTime"/>
|
||||
<result column="f_enabled_mark" property="enabledMark"/>
|
||||
<result column="f_is_read" property="isRead"/>
|
||||
<result column="f_last_modify_user_id" property="lastModifyUserId"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getMessageList" parameterType="map" resultMap="Message">
|
||||
SELECT r.f_id, r.f_title, r.f_type, r.f_is_read, r.f_creator_time, r.f_creator_user_id, r.f_last_modify_time, r.f_last_modify_user_id,
|
||||
u.f_real_name,u.f_account FROM base_message r
|
||||
LEFT JOIN base_user u ON u.f_id = r.f_user_id where 1 = 1
|
||||
<if test="map.userId != null">
|
||||
AND r.f_user_id= #{map.userId}
|
||||
</if>
|
||||
<if test="map.keyword != null">
|
||||
AND (r.f_title like #{map.keyword} OR u.f_real_name LIKE #{map.keyword} OR u.f_account LIKE #{map.keyword})
|
||||
</if>
|
||||
<if test="map.type != null">
|
||||
AND r.f_type = #{map.type}
|
||||
</if>
|
||||
<if test="map.isRead != null">
|
||||
AND r.f_is_read = #{map.isRead}
|
||||
</if>
|
||||
ORDER BY r.f_last_modify_time desc
|
||||
</select>
|
||||
|
||||
<select id="getUnreadCount" resultType="int">
|
||||
SELECT COUNT(1) FROM base_message
|
||||
WHERE f_user_id = #{userId} AND f_is_read = 0 AND f_type = #{type}
|
||||
</select>
|
||||
|
||||
<select id="getInfoDefault" parameterType="int" resultMap="Message">
|
||||
SELECT * FROM base_message WHERE 1 = 1 AND f_type = #{type} ORDER BY f_creator_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?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.yunzhupaas.base.mapper.PortalManageMapper">
|
||||
|
||||
<sql id="selectPages">
|
||||
SELECT
|
||||
<!-- 门户管理表 -->
|
||||
bpm.f_id id,
|
||||
bpm.f_enabled_mark enabledMark,
|
||||
bpm.f_platform platform,
|
||||
bpm.f_description description,
|
||||
bpm.F_Tenant_Id tenantId,
|
||||
bpm.f_sort_code sortCode,
|
||||
bpm.f_system_id systemId,
|
||||
bpm.f_portal_id portalId,
|
||||
bpm.f_creator_time creatorTime,
|
||||
bpm.f_last_modify_time lastModifyTime,
|
||||
<!-- 门户表 -->
|
||||
bp.f_category categoryId,
|
||||
bp.f_full_name portalName,
|
||||
bd.f_full_name categoryName,
|
||||
<!-- 用户表 -->
|
||||
us.F_Real_Name createUserName,
|
||||
us.F_Account createUserAccount,
|
||||
us2.F_Real_Name modifyUserName,
|
||||
us2.F_Account modifyUserAccount
|
||||
FROM
|
||||
base_portal_manage bpm
|
||||
LEFT JOIN
|
||||
base_portal bp
|
||||
ON
|
||||
bpm.f_portal_id = bp.f_id
|
||||
LEFT JOIN
|
||||
base_user us
|
||||
ON
|
||||
bpm.F_Creator_User_Id = us.f_id
|
||||
LEFT JOIN
|
||||
base_user us2
|
||||
ON
|
||||
bpm.F_Last_Modify_User_Id = us2.f_id
|
||||
LEFT JOIN
|
||||
base_dictionary_data bd
|
||||
ON bp.f_category = bd.f_id
|
||||
WHERE 1 = 1
|
||||
<if test="pmPage.keyword != null and pmPage.keyword != ''">
|
||||
AND (bp.f_full_name LIKE #{pmPage.keyword} OR bpm.f_description LIKE #{pmPage.keyword})
|
||||
</if>
|
||||
<if test="pmPage.category != null and pmPage.category != ''">
|
||||
AND
|
||||
bp.f_category = #{pmPage.category}
|
||||
</if>
|
||||
<if test="pmPage.enabledMark != null">
|
||||
AND
|
||||
bpm.f_enabled_mark = #{pmPage.enabledMark}
|
||||
<!-- AND bp.f_enabled_mark = #{pmPage.enabledMark} -->
|
||||
</if>
|
||||
<if test="pmPage.platform != null and pmPage.platform != ''">
|
||||
AND
|
||||
bpm.f_platform LIKE #{pmPage.platform}
|
||||
</if>
|
||||
<if test="pmPage.systemId != null and pmPage.systemId != ''">
|
||||
AND
|
||||
bpm.f_system_id = #{pmPage.systemId}
|
||||
</if>
|
||||
<if test="pmPage.state != null and pmPage.state != ''">
|
||||
AND
|
||||
bp.F_state != #{pmPage.state}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="selectPortalManageDoPage" resultType="com.yunzhupaas.base.model.portalManage.PortalManagePageDO" parameterType="com.yunzhupaas.base.model.portalManage.PortalManagePage">
|
||||
SELECT
|
||||
*
|
||||
FROM (<include refid="selectPages"></include>) TempTable
|
||||
ORDER BY
|
||||
sortCode ASC,
|
||||
creatorTime DESC
|
||||
</select>
|
||||
|
||||
<select id="selectPortalManageDoList" resultType="com.yunzhupaas.base.model.portalManage.PortalManagePageDO" parameterType="com.yunzhupaas.base.model.portalManage.PortalManagePage">
|
||||
SELECT
|
||||
*
|
||||
FROM (<include refid="selectPages"></include>) TempTable
|
||||
ORDER BY
|
||||
sortCode ASC,
|
||||
creatorTime DESC
|
||||
</select>
|
||||
|
||||
<select id="selectPortalBySystemIds" resultType="com.yunzhupaas.base.model.portalManage.PortalManagePageDO" parameterType="java.lang.String">
|
||||
SELECT
|
||||
bpm.f_id id,
|
||||
bpm.f_enabled_mark enabledMark,
|
||||
bpm.f_platform platform,
|
||||
bpm.f_description description,
|
||||
bpm.f_sort_code sortCode,
|
||||
bpm.f_system_id systemId,
|
||||
bpm.f_portal_id portalId,
|
||||
bpm.f_creator_time creatorTime,
|
||||
bpm.f_last_modify_time lastModifyTime,
|
||||
bp.f_category categoryId,
|
||||
bp.f_full_name portalName,
|
||||
bd.f_full_name categoryName
|
||||
FROM
|
||||
base_portal bp
|
||||
LEFT JOIN base_portal_manage bpm ON bpm.f_portal_id = bp.f_id
|
||||
LEFT JOIN base_dictionary_data bd ON bp.f_category = bd.f_id
|
||||
WHERE bpm.f_system_id IN
|
||||
<foreach collection="systemIds"
|
||||
item="systemId" index="index" separator="," open="(" close=")">
|
||||
#{systemId}
|
||||
</foreach>
|
||||
<if test="collect != null and collect.size > 0">
|
||||
AND bpm.f_id IN
|
||||
<foreach collection="collect"
|
||||
item="managerId" index="index" separator="," open="(" close=")">
|
||||
#{managerId}
|
||||
</foreach>
|
||||
</if>
|
||||
AND bpm.f_enabled_mark = 1
|
||||
ORDER BY
|
||||
bpm.f_sort_code ASC,
|
||||
bpm.f_creator_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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.yunzhupaas.permission.mapper.PositionMapper">
|
||||
|
||||
<select id="getListByUserId" parameterType="String" resultType="com.yunzhupaas.permission.entity.PositionEntity">
|
||||
SELECT * FROM base_position WHERE F_ID IN(SELECT F_OBJECT_ID FROM base_user_relation WHERE F_USER_ID = #{userId}) ORDER BY F_SORT_CODE
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
106
yunzhupaas-admin/src/main/resources/mapper/system/RoleMapper.xml
Normal file
106
yunzhupaas-admin/src/main/resources/mapper/system/RoleMapper.xml
Normal file
@@ -0,0 +1,106 @@
|
||||
<?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.yunzhupaas.permission.mapper.RoleMapper">
|
||||
|
||||
<select id="getListId" resultType="java.lang.String">
|
||||
SELECT * FROM base_role WHERE F_ID IN(SELECT F_OBJECT_ID FROM base_user_relation WHERE F_USER_ID = #{userId}) ORDER BY F_SORT_CODE
|
||||
</select>
|
||||
|
||||
<select id="query" resultType="java.lang.String">
|
||||
SELECT F_Id FROM base_role
|
||||
<if test="globalMark != 1">
|
||||
WHERE 1 = 1
|
||||
AND F_Id IN (
|
||||
SELECT DISTINCT
|
||||
a.F_Id
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
br.F_Id
|
||||
FROM
|
||||
base_organize bo
|
||||
LEFT JOIN base_organize_relation bor ON bo.F_Id = bor.F_Organize_Id
|
||||
LEFT JOIN base_role br ON br.F_Id = bor.F_Object_Id
|
||||
WHERE
|
||||
bor.F_Object_Type = 'Role'
|
||||
AND bor.F_Object_Type IS NOT NULL
|
||||
<if test="orgIdList != null and orgIdList.size() != 0">
|
||||
AND bo.F_Id IN
|
||||
<foreach collection="orgIdList"
|
||||
item="orgIds" index="index" separator="," open="(" close=")">
|
||||
#{orgIds}
|
||||
</foreach>
|
||||
</if>
|
||||
) a
|
||||
)
|
||||
</if>
|
||||
<if test="globalMark == -1 or globalMark == 1">
|
||||
<if test="globalMark != 1">
|
||||
OR
|
||||
</if>
|
||||
<if test="globalMark == 1">
|
||||
Where
|
||||
</if>
|
||||
F_Id IN
|
||||
(
|
||||
SELECT F_Id FROM base_role WHERE F_Global_Mark = 1
|
||||
)
|
||||
</if>
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (F_Full_Name LIKE #{keyword} OR F_En_Code LIKE #{keyword})
|
||||
</if>
|
||||
<if test="enabledMark != null">
|
||||
AND (f_enabled_Mark = #{enabledMark})
|
||||
</if>
|
||||
ORDER BY f_sort_code asc, f_creator_time desc
|
||||
</select>
|
||||
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
SELECT count(F_Id) FROM base_role
|
||||
<if test="globalMark != 1">
|
||||
WHERE 1 = 1
|
||||
AND F_Id IN (
|
||||
SELECT DISTINCT
|
||||
a.F_Id
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
br.F_Id
|
||||
FROM
|
||||
base_organize bo
|
||||
LEFT JOIN base_organize_relation bor ON bo.F_Id = bor.F_Organize_Id
|
||||
LEFT JOIN base_role br ON br.F_Id = bor.F_Object_Id
|
||||
WHERE
|
||||
bor.F_Object_Type = 'Role'
|
||||
AND bor.F_Object_Type IS NOT NULL
|
||||
<if test="orgIdList != null and orgIdList.size() != 0">
|
||||
AND bo.F_Id IN
|
||||
<foreach collection="orgIdList"
|
||||
item="orgIds" index="index" separator="," open="(" close=")">
|
||||
#{orgIds}
|
||||
</foreach>
|
||||
</if>
|
||||
) a
|
||||
)
|
||||
</if>
|
||||
<if test="globalMark == -1 or globalMark == 1">
|
||||
<if test="globalMark != 1">
|
||||
OR
|
||||
</if>
|
||||
<if test="globalMark == 1">
|
||||
Where
|
||||
</if>
|
||||
F_Id IN
|
||||
(
|
||||
SELECT F_Id FROM base_role WHERE F_Global_Mark = 1
|
||||
)
|
||||
</if>
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (F_Full_Name LIKE #{keyword} OR F_En_Code LIKE #{keyword})
|
||||
</if>
|
||||
<if test="enabledMark != null">
|
||||
AND (f_enabled_Mark = #{enabledMark})
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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.yunzhupaas.base.mapper.SysconfigMapper">
|
||||
|
||||
<delete id="deleteFig">
|
||||
delete from base_sys_config where F_Category ='SysConfig'
|
||||
</delete>
|
||||
<delete id="deleteMpFig">
|
||||
delete from base_sys_config where F_Category='MPConfig'
|
||||
</delete>
|
||||
<delete id="deleteQyhFig">
|
||||
delete from base_sys_config where F_Category='QYHConfig'
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?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.yunzhupaas.permission.mapper.UserMapper">
|
||||
|
||||
<select id="getListId" resultType="java.lang.String">
|
||||
SELECT F_Id from base_user WHERE F_Enabled_Mark = 1
|
||||
</select>
|
||||
|
||||
<select id="query" resultType="java.lang.String">
|
||||
SELECT F_Id FROM
|
||||
(SELECT DISTINCT u.F_Id,u.F_Sort_Code,u.F_Creator_Time
|
||||
FROM base_user_relation ul1,base_user u
|
||||
WHERE u.F_Id = ul1.F_User_Id
|
||||
AND u.f_account != 'admin'
|
||||
<if test="enabledMark != null">
|
||||
AND u.f_enabled_mark = #{enabledMark}
|
||||
</if>
|
||||
<if test="gender != null and gender != ''">
|
||||
AND u.f_gender = #{gender}
|
||||
</if>
|
||||
<if test="account != null and account != ''">
|
||||
and (u.F_Account like #{account} or u.F_Real_Name like #{account} or u.F_Mobile_Phone like
|
||||
#{account})
|
||||
</if>
|
||||
<if test="orgIdList != null and orgIdList.size > 0">
|
||||
AND (ul1.F_Object_Id IN
|
||||
<trim suffixOverrides=" OR ul1.F_Object_Id IN()">
|
||||
<foreach collection="orgIdList" item="orgIds" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR ul1.F_Object_Id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{orgIds}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
</if>
|
||||
ORDER BY u.F_Sort_Code ASC,u.F_Creator_Time DESC) uu
|
||||
</select>
|
||||
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
SELECT count(F_Id) FROM
|
||||
(SELECT DISTINCT u.F_Id,u.F_Sort_Code,u.F_Creator_Time
|
||||
FROM base_user_relation ul1,base_user u
|
||||
WHERE u.F_Id = ul1.F_User_Id
|
||||
AND u.F_Account != 'admin'
|
||||
<if test="enabledMark != null">
|
||||
AND u.f_enabled_mark = #{enabledMark}
|
||||
</if>
|
||||
<if test="gender != null and gender != ''">
|
||||
AND u.f_gender = #{gender}
|
||||
</if>
|
||||
<if test="account != null and account != ''">
|
||||
and (u.F_Account like #{account} or u.F_Real_Name like #{account} or u.F_Mobile_Phone like
|
||||
#{account})
|
||||
</if>
|
||||
<if test="orgIdList != null and orgIdList.size > 0">
|
||||
AND (ul1.F_Object_Id IN
|
||||
<trim suffixOverrides=" OR ul1.F_Object_Id IN()">
|
||||
<foreach collection="orgIdList" item="orgIds" index="index" open="(" close=")">
|
||||
<if test="index != 0">
|
||||
<choose>
|
||||
<when test="index % 1000 == 999">) OR ul1.F_Object_Id IN (</when>
|
||||
<otherwise>,</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
#{orgIds}
|
||||
</foreach>
|
||||
</trim>
|
||||
)
|
||||
</if>) uu
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.yunzhupaas.mapper.TrainExamRecordsMapper">
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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.yunzhupaas.mapper.TrainLibraryEssayQuestionMapper">
|
||||
<select id="getListByParentId" resultType="com.yunzhupaas.entity.TrainLibraryEssayQuestionEntity">
|
||||
select f_id as id,
|
||||
f_bank_id as fbankId,
|
||||
f_full_name as ffullName,
|
||||
f_answer as fanswer,
|
||||
f_result as fresult
|
||||
from make_train_library_essay_question
|
||||
where f_bank_id = #{parentId}
|
||||
</select>
|
||||
|
||||
<update id="updateResult">
|
||||
<foreach collection="items" item="item" separator=";">
|
||||
update make_train_library_essay_question
|
||||
set f_result = #{item.result}
|
||||
where f_id = #{item.id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?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.yunzhupaas.mapper.TrainLibraryJudgmentMapper">
|
||||
|
||||
<select id="getListByParentId" resultType="com.yunzhupaas.entity.TrainLibraryJudgmentEntity">
|
||||
select f_id as id,
|
||||
f_bank_id as fbankId,
|
||||
f_full_name as ffullName,
|
||||
f_answer as fanswer
|
||||
from make_train_library_judgment
|
||||
where f_bank_id = #{parentId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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.yunzhupaas.mapper.TrainLibraryMoreMapper">
|
||||
|
||||
<select id="getListByParentId" resultType="com.yunzhupaas.entity.TrainLibraryMoreEntity">
|
||||
select f_id as id,
|
||||
f_bank_id as fbankId,
|
||||
f_full_name as ffullName,
|
||||
f_options_a as foptionsA,
|
||||
f_options_b as foptionsB,
|
||||
f_options_c as foptionsC,
|
||||
f_options_d as foptionsD,
|
||||
f_answer as fanswer
|
||||
from make_train_library_more
|
||||
where f_bank_id = #{parentId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?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.yunzhupaas.mapper.TrainLibrarySingleMapper">
|
||||
<select id="getListByParentId" resultType="com.yunzhupaas.entity.TrainLibrarySingleEntity">
|
||||
select f_id as id,
|
||||
f_bank_id as fbankId,
|
||||
f_full_name as ffullName,
|
||||
f_options_a as foptionsA,
|
||||
f_options_b as foptionsB,
|
||||
f_options_c as foptionsC,
|
||||
f_options_d as foptionsD,
|
||||
f_answer as fanswer
|
||||
from make_train_library_single
|
||||
where f_bank_id = #{parentId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?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.yunzhupaas.mapper.TrainTestPaperLibraryMapper">
|
||||
<insert id="saveRecords">
|
||||
INSERT INTO make_train_exam_records
|
||||
(f_id, f_number,f_library_id, f_examiners, f_full_name, f_sort, f_mark, f_result_score, f_basic_score, f_question_flag,
|
||||
f_question_status, f_question_score, f_enabled_mark, f_sort_code, f_organize_id, f_creator_time,
|
||||
f_creator_user_id,f_question_num,f_per_question)
|
||||
VALUE (#{id}, #{fnumber},#{flibraryId} ,#{fexaminers}, #{ffullName}, #{fsort}, #{fmark}, #{fresultScore}, #{fbasicScore},
|
||||
#{fquestionFlag},
|
||||
#{fquestionStatus}, #{fquestionScore}, #{fenabledMark}, #{fsortCode}, #{forganizeId}, #{fcreatorTime},
|
||||
#{fcreatorUserId},#{fquestionNum},#{fperQuestion})
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user