|
@@ -21,7 +21,7 @@
|
|
|
<result column="emergency_phone" property="emergencyPhone"/>
|
|
|
<result column="emergency_relation" property="emergencyRelation"/>
|
|
|
<result column="speciality" property="speciality"/>
|
|
|
- <result column="political" property="political"/>
|
|
|
+ <result column="political" property="politicalType"/>
|
|
|
<result column="bank_name" property="bankName"/>
|
|
|
<result column="user_status" property="userStatus"/>
|
|
|
<result column="bank_num" property="bankNum"/>
|
|
@@ -49,7 +49,7 @@
|
|
|
<result column="emergency_phone" property="emergencyPhone"/>
|
|
|
<result column="emergency_relation" property="emergencyRelation"/>
|
|
|
<result column="speciality" property="speciality"/>
|
|
|
- <result column="political" property="political"/>
|
|
|
+ <result column="political_type" property="politicalType"/>
|
|
|
<result column="bank_name" property="bankName"/>
|
|
|
<result column="user_status" property="userStatus"/>
|
|
|
<result column="bank_num" property="bankNum"/>
|
|
@@ -60,10 +60,24 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectUserFilesInfoPage" resultMap="userFilesInfoResultVoMap">
|
|
|
- select * from c_view_user_files_info where is_deleted = 0
|
|
|
+ select a.*,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='marriage_status' and parent_id!=0 and dict_value =a.marriage_status) as marriageStatusName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='education_type' and parent_id!=0 and dict_value =a.education_type) as educationName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='user_type' and parent_id!=0 and dict_value =a.user_type) as userTypeName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='con_type' and parent_id!=0 and dict_value =a.con_type) as conTypeName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='user_status' and parent_id!=0 and dict_value =a.user_status) as userStatusName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='political_type' and parent_id!=0 and dict_value =a.political_type) as politicalName
|
|
|
+ from c_view_user_files_info a where a.is_deleted = 0
|
|
|
</select>
|
|
|
|
|
|
<select id="getUserFileDetail" resultMap="userFilesInfoResultVoMap">
|
|
|
- select * from c_view_user_files_info where is_deleted = 0 and id=#{id}
|
|
|
+ select a.*,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='marriage_status' and parent_id!=0 and dict_value =a.marriage_status) as marriageStatusName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='education_type' and parent_id!=0 and dict_value =a.education_type) as educationName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='user_type' and parent_id!=0 and dict_value =a.user_type) as userTypeName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='con_type' and parent_id!=0 and dict_value =a.con_type) as conTypeName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='user_status' and parent_id!=0 and dict_value =a.user_status) as userStatusName,
|
|
|
+ (SELECT dict_name from c_dict_info a where a.code='political_type' and parent_id!=0 and dict_value =a.political_type) as politicalName
|
|
|
+ from c_view_user_files_info a where a.is_deleted = 0 and id=#{id}
|
|
|
</select>
|
|
|
</mapper>
|