Ver código fonte

用户身份证照片

LiFei 4 anos atrás
pai
commit
1b0e40ea23

+ 3 - 0
happy-boot-module-flexjob/src/main/java/org/jeecg/modules/hwuser/entity/HwUser.java

@@ -170,5 +170,8 @@ public class HwUser implements Serializable{
 	 * 演示用户(0:否 1:是)
 	 * 演示用户(0:否 1:是)
 	 */
 	 */
 	private Integer isDemonstrate;
 	private Integer isDemonstrate;
+
+	@TableField(exist = false)
+	private Integer idcardPictureType;  //(1:未上传  2:已上传) 用于查询
 }
 }
 
 

+ 8 - 0
happy-boot-module-flexjob/src/main/java/org/jeecg/modules/hwuser/mapper/xml/HwUserMapper.xml

@@ -76,6 +76,14 @@
 			<if test="hwUser.registerTime_begin != null and hwUser.registerTime_begin !=''">
 			<if test="hwUser.registerTime_begin != null and hwUser.registerTime_begin !=''">
 				and a.register_time between #{hwUser.registerTime_begin} and #{hwUser.registerTime_end}
 				and a.register_time between #{hwUser.registerTime_begin} and #{hwUser.registerTime_end}
 			</if>
 			</if>
+			<if test="hwUser.idcardPictureType != null">
+				<if test="hwUser.idcardPictureType==1">
+					AND a.idcard_front is null
+				</if>
+				<if test="hwUser.idcardPictureType ==2">
+					AND a.idcard_front is not null
+				</if>
+			</if>
         </where>
         </where>
 		group by a.id
 		group by a.id
         ORDER BY a.register_time DESC,a.id asc
         ORDER BY a.register_time DESC,a.id asc