实现身份认证查询
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<result property="rulingFollows" column="ruling_follows" />
|
||||
<result property="verificaOpinion" column="verifica_opinion" />
|
||||
<result property="checkOpinion" column="check_opinion" />
|
||||
<result property="annexId" column="annex_id" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
@@ -54,6 +55,7 @@
|
||||
<if test="rulingFollows != null and rulingFollows != ''">ruling_follows = #{rulingFollows},</if>
|
||||
<if test="verificaOpinion != null and verificaOpinion != ''">verifica_opinion = #{verificaOpinion},</if>
|
||||
<if test="checkOpinion != null and checkOpinion != ''">check_opinion = #{checkOpinion},</if>
|
||||
<if test="annexId != null ">annex_id = #{annexId},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
@@ -63,7 +65,7 @@
|
||||
|
||||
<select id="selectArbitrateRecord" parameterType="ArbitrateRecord" resultMap="ArbitrateRecordResult">
|
||||
SELECT a.id ,a.case_appli_id ,a.eviden_determi ,a.fact_determi ,a.case_sketch ,a.arbitrate_think ,a.ruling_follows ,
|
||||
a.verifica_opinion ,a.check_opinion
|
||||
a.verifica_opinion ,a.check_opinion,a.annex_id
|
||||
from arbitrate_record a
|
||||
<where>
|
||||
<if test="caseAppliId != null ">
|
||||
|
||||
+56
@@ -3,7 +3,63 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.IdentityAuthenticationMapper">
|
||||
<resultMap type="IdentityAuthentication" id="IdentityAuthenticationResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="identityNo" column="identity_no" />
|
||||
<result property="certificationTime" column="certification_time" />
|
||||
<result property="certificationStatus" column="certification_status" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into identi_authenti(
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no,</if>
|
||||
<if test="certificationTime != null and certificationTime != ''">certification_time,</if>
|
||||
<if test="certificationStatus != null and certificationStatus != ''">certification_status,</if>
|
||||
<if test="userName != null and userName != ''">user_name,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null ">#{userId},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="identityNo != null and identityNo != ''">#{identityNo},</if>
|
||||
<if test="certificationTime != null and certificationTime != ''">#{certificationTime},</if>
|
||||
<if test="certificationStatus != null and certificationStatus != ''">#{certificationStatus},</if>
|
||||
<if test="userName != null and userName != ''">#{userName},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certificationStatus ,i.user_id ,i.user_name
|
||||
from identi_authenti i
|
||||
<where>
|
||||
<if test="userName != null and userName != '' ">
|
||||
AND i.user_name = #{userName}
|
||||
</if>
|
||||
<if test="userId != null ">
|
||||
AND i.user_id = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCountIdentityAuthentication" resultType="Integer">
|
||||
select count(1) from identi_authenti i
|
||||
<where>
|
||||
<if test="userName != null and userName != '' ">
|
||||
AND i.user_name = #{userName}
|
||||
</if>
|
||||
<if test="userId != null ">
|
||||
AND i.user_id = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user