优化企标导入多选
This commit is contained in:
+3
-7
@@ -2423,19 +2423,15 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
String[] split3 = qcrbuss.split(",");
|
String[] split3 = qcrbuss.split(",");
|
||||||
String account = "";
|
String account = "";
|
||||||
String str = "";
|
String str = "";
|
||||||
|
String qcr = "";
|
||||||
String qcrs = "";
|
String qcrs = "";
|
||||||
if (StringUtils.isNotBlank(qcrbuss)){
|
if (StringUtils.isNotBlank(qcrbuss)){
|
||||||
for (int j = 0; j < split3.length; j++) {
|
for (int j = 0; j < split3.length; j++) {
|
||||||
str = split3[j];
|
str = split3[j];
|
||||||
account = tsUserDao.selectByAccount(str);
|
account = tsUserDao.selectByAccount(str);
|
||||||
QueryWrapper<TsUser> queryWrapper = new QueryWrapper<>();
|
qcr = tsUserDao.selectByQcrName(account);
|
||||||
queryWrapper.eq(str != null,"UNAME",str)
|
|
||||||
.eq(account != null,"ACCOUNT",account);
|
|
||||||
TsUser tsUser = tsUserDao.selectOne(queryWrapper);
|
|
||||||
String acc = tsUser.getAccount();
|
|
||||||
String qcr = tsUser.getUname();
|
|
||||||
if (str != null && !str.equals("")) {
|
if (str != null && !str.equals("")) {
|
||||||
if (!account.equals(acc) && !str.equals(qcr)){
|
if (!str.equals(qcr)){
|
||||||
return Result.error("第"+ count +"行输入的起草人名称不存在");
|
return Result.error("第"+ count +"行输入的起草人名称不存在");
|
||||||
}
|
}
|
||||||
if (str.length() > 100) {
|
if (str.length() > 100) {
|
||||||
|
|||||||
@@ -78,4 +78,7 @@ public interface TsUserDao extends BaseMapper<TsUser> {
|
|||||||
|
|
||||||
@Select("select ACCOUNT from ts_user where UNAME =#{qcrbuss}")
|
@Select("select ACCOUNT from ts_user where UNAME =#{qcrbuss}")
|
||||||
String selectByAccount(String qcrbuss);
|
String selectByAccount(String qcrbuss);
|
||||||
|
|
||||||
|
@Select("select UNAME from ts_user where ACCOUNT =#{str}")
|
||||||
|
String selectByQcrName(String str);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user