Merge remote-tracking branch 'origin/master'
This commit is contained in:
+7
-6
@@ -777,9 +777,10 @@ public class SysUserController {
|
||||
*/
|
||||
@PostMapping("/deleteUserRole")
|
||||
@RequiresPermissions("sys:user:sel")
|
||||
public Result<Object> deleteUserRole(@RequestParam(name="roleId") String roleId,
|
||||
@RequestParam(name="userId",required=true) String userId) {
|
||||
try {
|
||||
public Result<Object> deleteUserRole(@RequestBody Map<String,String> map) {
|
||||
try {
|
||||
String roleId = map.get("roleId");
|
||||
String userId = map.get("userId");
|
||||
QueryWrapper<SysUserRole> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq(ROLE_ID, roleId).eq(USER_ID,userId);
|
||||
sysUserRoleService.remove(queryWrapper);
|
||||
@@ -798,10 +799,10 @@ public class SysUserController {
|
||||
*/
|
||||
@PostMapping("/deleteUserRoleBatch")
|
||||
@RequiresPermissions("sys:user:sel")
|
||||
public Result<SysUserRole> deleteUserRoleBatch(
|
||||
@RequestParam(name="roleId") String roleId,
|
||||
@RequestParam(name="userIds",required=true) String userIds) {
|
||||
public Result<SysUserRole> deleteUserRoleBatch(@RequestBody Map<String,String> map) {
|
||||
try {
|
||||
String roleId = map.get("roleId");
|
||||
String userIds = map.get("userIds");
|
||||
QueryWrapper<SysUserRole> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq(ROLE_ID, roleId).in(USER_ID,Arrays.asList(userIds.split(",")));
|
||||
sysUserRoleService.remove(queryWrapper);
|
||||
|
||||
+3
-1
@@ -644,7 +644,9 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
}
|
||||
// 企标授权部门处理
|
||||
if (TableNameEnum.ENTERPRISE_STANDARDS.getValue().equals(module)) {
|
||||
esAuthUserService.resetAuthDept(id, parameterMap.get(FieldCommon.AUTH_DEPT).toString());
|
||||
if (parameterMap.get(FieldCommon.AUTH_DEPT) != null) {
|
||||
esAuthUserService.resetAuthDept(id, parameterMap.get(FieldCommon.AUTH_DEPT).toString());
|
||||
}
|
||||
}
|
||||
|
||||
return MessageUtils.getMessage(ResultCommon.OK);
|
||||
|
||||
@@ -437,17 +437,6 @@ public class ImportUtil {
|
||||
}
|
||||
}
|
||||
|
||||
// 企标稽查内容文件导入
|
||||
if (FieldShowTypeEnum.INSPECT_CONTENT_FILE_UPLOAD.getValue().equals(tag.getFieldShowType())) {
|
||||
if (!this.inspectContentFileValid(cellValue, fileMap)) {
|
||||
log.error("第" + row + "列" + tag.getDbFieldTxt() + "填写错误 ");
|
||||
errMsg.append("第").append(row).append("列").append(tag.getDbFieldTxt()).append("填写错误 ");
|
||||
} else {
|
||||
// 转为List
|
||||
// 将转好的值加入Map
|
||||
parameterMap.put(tag.getDbFieldName(), this.convertInspectContentFile(cellValue, fileMap));
|
||||
}
|
||||
}
|
||||
// 树形单选
|
||||
if (FieldShowTypeEnum.TREE_STRUCTURE_SINGLE_SELECT.getValue().equals(tag.getFieldShowType())) {
|
||||
// 根据tag找到dictCode
|
||||
@@ -463,6 +452,19 @@ public class ImportUtil {
|
||||
|
||||
// 将转好的值加入Map
|
||||
parameterMap.put(tag.getDbFieldName(), cellValue);
|
||||
|
||||
// 企标稽查内容文件导入
|
||||
if (FieldShowTypeEnum.INSPECT_CONTENT_FILE_UPLOAD.getValue().equals(tag.getFieldShowType())) {
|
||||
if (!this.inspectContentFileValid(cellValue, fileMap)) {
|
||||
cellValue = null;
|
||||
log.error("第" + row + "列" + tag.getDbFieldTxt() + "填写错误 ");
|
||||
errMsg.append("第").append(row).append("列").append(tag.getDbFieldTxt()).append("填写错误 ");
|
||||
} else {
|
||||
// 转为List
|
||||
// 将转好的值加入Map
|
||||
parameterMap.put(tag.getDbFieldName(), this.convertInspectContentFile(cellValue, fileMap));
|
||||
}
|
||||
}
|
||||
}
|
||||
// 判断实施日期是否大于发布日期15天
|
||||
if (releaseDate != null && implementationDate != null) {
|
||||
@@ -837,6 +839,7 @@ public class ImportUtil {
|
||||
// 获取第四行前两个单元格的内容
|
||||
String cellContent1 = getCellContent(row.getCell(0));
|
||||
String cellContent2 = getCellContent(row.getCell(1));
|
||||
String cellContent3 = getCellContent(row.getCell(2));
|
||||
// 执行valid方法进行校验
|
||||
if (!valid(cellContent1, cellContent2)) {
|
||||
return false;
|
||||
|
||||
@@ -35,7 +35,7 @@ please.use.a.file.with.the.suffix.xls=\u8BF7\u4F7F\u7528\u540E\u7F00\u540D\u4E3A
|
||||
header.inconsistent.with.template=\u8868\u5934\u4E0E\u6A21\u677F\u4E0D\u4E00\u81F4
|
||||
please.select.a.workgroup.for.export=\u8BF7\u9009\u62E9\u5DE5\u4F5C\u7EC4\u8FDB\u884C\u5BFC\u51FA
|
||||
the.job.number.cannot.be.empty.export=\u7B2C{0}\u884C,\u5DE5\u53F7\u4E0D\u80FD\u4E3A\u7A7A
|
||||
the.realname.cannot.be.empty.export=\u7B2C{0}\u884C,\u5DE5\u53F7\u4E0D\u80FD\u4E3A\u7A7A
|
||||
the.real.name.cannot.be.empty.export=\u7B2C{0}\u884C,\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A
|
||||
job.number.does.not.exist.export=\u7B2C{0}\u884C,\u5DE5\u53F7\u4E0D\u5B58\u5728
|
||||
duplicate.job.number.export=\u7B2C{0}\u884C,\u5DE5\u53F7\u91CD\u590D
|
||||
cannot.close=\u4E0D\u662F\u5F85\u6574\u6539\u5DF2\u8FC7\u671F\u7684\u6570\u636E\u4E0D\u80FD\u5173\u95ED
|
||||
@@ -64,6 +64,7 @@ you.have.not.data.auth=\u60A8\u6CA1\u6709{0}\u7684\u6570\u636E\u6743\u9650\uFF0C
|
||||
dict.delete.error=\u6807\u7B7E\u5DF2\u88AB\u5F15\u7528\uFF0C\u65E0\u6CD5\u5220\u9664
|
||||
parameter.not.recognized=\u53C2\u6570\u4E0D\u8BC6\u522B
|
||||
|
||||
|
||||
the.real.name.and.job.number.mismatch.export=\u7B2C{0}\u884C,\u59D3\u540D\u4E0E\u5DE5\u53F7\u4E0D\u5339\u914D
|
||||
tag.delete.error.3=\u5305\u542B\u56FA\u5B9A\u5B57\u6BB5,\u4E0D\u53EF\u5220\u9664
|
||||
tag.edit.error.1=\u56FA\u5B9A\u5B57\u6BB5,\u4E0D\u53EF\u4FEE\u6539
|
||||
|
||||
Reference in New Issue
Block a user