【修改】工号字段处理,统一修改成username
This commit is contained in:
@@ -233,8 +233,6 @@ public class CommonConstant {
|
|||||||
public static final String SQL_INDEX_INDEX_USER_NAME = "index_user_name";
|
public static final String SQL_INDEX_INDEX_USER_NAME = "index_user_name";
|
||||||
/** sys_user 表 username 唯一键索引 */
|
/** sys_user 表 username 唯一键索引 */
|
||||||
public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username";
|
public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username";
|
||||||
/** sys_user 表 work_no 唯一键索引 */
|
|
||||||
public static final String SQL_INDEX_UNIQ_SYS_USER_WORK_NO = "uniq_sys_user_work_no";
|
|
||||||
/** sys_user 表 phone 唯一键索引 */
|
/** sys_user 表 phone 唯一键索引 */
|
||||||
public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone";
|
public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone";
|
||||||
/** sys_user 表 email 唯一键索引 */
|
/** sys_user 表 email 唯一键索引 */
|
||||||
|
|||||||
-2
@@ -644,8 +644,6 @@ public class SysUserController {
|
|||||||
if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_USERNAME)
|
if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_USERNAME)
|
||||||
|| message.contains(CommonConstant.SQL_INDEX_INDEX_USER_NAME)) {
|
|| message.contains(CommonConstant.SQL_INDEX_INDEX_USER_NAME)) {
|
||||||
errorMessage.add("第 " + lineNumber + " 行:用户名已经存在,忽略导入。");
|
errorMessage.add("第 " + lineNumber + " 行:用户名已经存在,忽略导入。");
|
||||||
} else if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_WORK_NO)) {
|
|
||||||
errorMessage.add("第 " + lineNumber + " 行:工号已经存在,忽略导入。");
|
|
||||||
} else if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_PHONE)) {
|
} else if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_PHONE)) {
|
||||||
errorMessage.add("第 " + lineNumber + " 行:手机号已经存在,忽略导入。");
|
errorMessage.add("第 " + lineNumber + " 行:手机号已经存在,忽略导入。");
|
||||||
} else if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_EMAIL)) {
|
} else if (message.contains(CommonConstant.SQL_INDEX_UNIQ_SYS_USER_EMAIL)) {
|
||||||
|
|||||||
+3
-3
@@ -116,8 +116,8 @@
|
|||||||
<if test="userParams.realname != null and userParams.realname != ''">
|
<if test="userParams.realname != null and userParams.realname != ''">
|
||||||
AND sys_user.realname LIKE concat(concat('%',#{userParams.realname}),'%')
|
AND sys_user.realname LIKE concat(concat('%',#{userParams.realname}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="userParams.workNo != null and userParams.workNo != ''">
|
<if test="userParams.username != null and userParams.username != ''">
|
||||||
AND sys_user.work_no LIKE concat(concat('%',#{userParams.workNo}),'%')
|
AND sys_user.username LIKE concat(concat('%',#{userParams.username}),'%')
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
</sql>
|
</sql>
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
sys_user.id AS id,
|
sys_user.id AS id,
|
||||||
sys_user.realname AS realname,
|
sys_user.realname AS realname,
|
||||||
sys_user.avatar AS avatar,
|
sys_user.avatar AS avatar,
|
||||||
sys_user.work_no AS workNo,
|
sys_user.username AS username,
|
||||||
sys_user.telephone AS telephone,
|
sys_user.telephone AS telephone,
|
||||||
sys_user.email AS email,
|
sys_user.email AS email,
|
||||||
sys_user.phone AS phone,
|
sys_user.phone AS phone,
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ public class SysUserSysDepartModel {
|
|||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private String realname;
|
private String realname;
|
||||||
private String workNo;
|
private String username;
|
||||||
private String post;
|
private String post;
|
||||||
private String telephone;
|
private String telephone;
|
||||||
private String email;
|
private String email;
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@
|
|||||||
s.implementation_date,
|
s.implementation_date,
|
||||||
d.declare_date,
|
d.declare_date,
|
||||||
d.declare_user,
|
d.declare_user,
|
||||||
CONCAT(u.username, '(', u.work_no, ')') AS declareUserName,
|
CONCAT(u.realname, '(', u.username, ')') AS declareUserName,
|
||||||
d.declare_file,
|
d.declare_file,
|
||||||
f.file_name AS declareFileName
|
f.file_name AS declareFileName
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
+1
-1
@@ -164,7 +164,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<!--推进人工号-->
|
<!--推进人工号-->
|
||||||
<if test="param.standardPromoterWorkNo != null and param.standardPromoterWorkNo != null">
|
<if test="param.standardPromoterWorkNo != null and param.standardPromoterWorkNo != null">
|
||||||
AND u3.work_no LIKE CONCAT('%',#{param.standardPromoterWorkNo},'%')
|
AND u3.username LIKE CONCAT('%',#{param.standardPromoterWorkNo},'%')
|
||||||
</if>
|
</if>
|
||||||
<!--标准类型-->
|
<!--标准类型-->
|
||||||
<if test="param.standardType != null and param.standardType != null">
|
<if test="param.standardType != null and param.standardType != null">
|
||||||
|
|||||||
+3
-3
@@ -27,7 +27,7 @@
|
|||||||
esp.qualityFlag,
|
esp.qualityFlag,
|
||||||
(score.avg_score_item1 + score.avg_score_item2 + score.avg_score_item3 +
|
(score.avg_score_item1 + score.avg_score_item2 + score.avg_score_item3 +
|
||||||
score.avg_score_item4 + score.avg_score_item5 + score.avg_score_item6) AS avgScore,
|
score.avg_score_item4 + score.avg_score_item5 + score.avg_score_item6) AS avgScore,
|
||||||
GROUP_CONCAT(DISTINCT CONCAT(u.username, '(', u.work_no, ')') ORDER BY u.username ASC SEPARATOR ',') AS reviewUsers
|
GROUP_CONCAT(DISTINCT CONCAT(u.realname, '(', u.username, ')') ORDER BY u.username ASC SEPARATOR ',') AS reviewUsers
|
||||||
FROM
|
FROM
|
||||||
`laws_enterprise_standard_review_meeting_record` AS rmr
|
`laws_enterprise_standard_review_meeting_record` AS rmr
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
<select id="getScoreList"
|
<select id="getScoreList"
|
||||||
resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardRmrEvaluateDetail">
|
resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardRmrEvaluateDetail">
|
||||||
SELECT
|
SELECT
|
||||||
CONCAT(u.username, '(', u.work_no, ')') AS adjudicatorName,
|
CONCAT(u.realname, '(', u.username, ')') AS adjudicatorName,
|
||||||
d.evaluate_item,
|
d.evaluate_item,
|
||||||
d.evaluate_score,
|
d.evaluate_score,
|
||||||
d.deduction_score_reason
|
d.deduction_score_reason
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
<select id="getScoreListByStandardNo"
|
<select id="getScoreListByStandardNo"
|
||||||
resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardRmrEvaluateDetail">
|
resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardRmrEvaluateDetail">
|
||||||
SELECT
|
SELECT
|
||||||
CONCAT(u.username, '(', u.work_no, ')') AS adjudicatorName,
|
CONCAT(u.realname, '(', u.username, ')') AS adjudicatorName,
|
||||||
d.evaluate_item,
|
d.evaluate_item,
|
||||||
d.evaluate_score,
|
d.evaluate_score,
|
||||||
d.deduction_score_reason
|
d.deduction_score_reason
|
||||||
|
|||||||
Reference in New Issue
Block a user