|
|
|
@ -14,7 +14,7 @@ import com.weaver.mc.util.StringUtils;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import com.weaver.verupgrade.conn.RecordSet;
|
|
|
|
|
import com.weaver.verupgrade.general.Util;
|
|
|
|
|
import com.weaver.verupgrade.hrm.User;
|
|
|
|
|
|
|
|
|
|
import com.weaver.verupgrade.hrm.resource.ResourceComInfo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -75,15 +75,15 @@ public class UpdateSecLevelAndLockStatus implements EsbServerlessRpcRemoteInterf
|
|
|
|
|
|
|
|
|
|
//更新账号锁定记录
|
|
|
|
|
if(StringUtils.isNotEmpty(zhsd)){
|
|
|
|
|
if(zhsd.equals(0)){ //未锁定,删除所有锁定记录
|
|
|
|
|
if(zhsd.equals("0")){ //未锁定,删除所有锁定记录
|
|
|
|
|
sql = "update ec_passport.dbo.user_lock_info set delete_type = 1 where user_id = " + ry + "and delete_type_type = 0 ";
|
|
|
|
|
|
|
|
|
|
logger_b15f4fa5.error("UpdateSecLevelAndLockStatus updatedelete_type == "+ sql );
|
|
|
|
|
boolean execute1 = rs.execute(sql);
|
|
|
|
|
logger_b15f4fa5.error("execute1 == "+ execute1 );
|
|
|
|
|
}else if(!zhsd.equals(0)){//锁定,新增一条数据
|
|
|
|
|
}else if(!zhsd.equals("0")){//锁定,新增一条数据
|
|
|
|
|
sql = "SELECT COUNT (1) AS sd FROM eteams.dbo.employee a ,ec_passport.dbo.user_lock_info b " +
|
|
|
|
|
"WHERE a.id = " + ry +" AND a.user_id = b.user_id AND a.delete_type = 0 ";
|
|
|
|
|
"WHERE a.id = '" + ry +"' AND a.user_id = b.user_id AND a.delete_type = 0 ";
|
|
|
|
|
boolean b1 = rs.executeQuery(sql);
|
|
|
|
|
if(rs.next()){
|
|
|
|
|
int sd = rs.getInt("sd");
|
|
|
|
@ -106,11 +106,11 @@ public class UpdateSecLevelAndLockStatus implements EsbServerlessRpcRemoteInterf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long id = IdGenerator.generate();
|
|
|
|
|
sql = "INSERT INTO passport.user_lock_info (" +
|
|
|
|
|
sql = "INSERT INTO ec_passport.user_lock_info (" +
|
|
|
|
|
"id, create_time, update_time, creator, delete_type, " +
|
|
|
|
|
"tenant_key, user_id, employee_id, overdue_time, user_status, lock_type" +
|
|
|
|
|
") VALUES ("+id+", "+formattedDateTime +", "+formattedDateTime+", "+currentEmployeeId+
|
|
|
|
|
", 0, "+currentTenantKey +", " + ry + ", " + ry +
|
|
|
|
|
") VALUES ('"+id+"', '"+formattedDateTime +"', '"+formattedDateTime+"', '"+currentEmployeeId+
|
|
|
|
|
"', 0, '"+currentTenantKey +"', " + ry + ", " + ry +
|
|
|
|
|
" , '2099-01-01 00:00:00.000', 'normal', 'ACCOUNT_LOCK')";
|
|
|
|
|
|
|
|
|
|
logger_b15f4fa5.error("UpdateSecLevelAndLockStatus insert == "+ sql );
|
|
|
|
|