外协人员批量上传附件 修改附件框大小2
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -16,6 +16,7 @@ import com.jeelowcode.framework.utils.tool.CollectionUtil;
|
|||||||
import com.jeelowcode.service.infra.service.IFileService;
|
import com.jeelowcode.service.infra.service.IFileService;
|
||||||
import com.jeelowcode.tool.framework.common.pojo.CommonResult;
|
import com.jeelowcode.tool.framework.common.pojo.CommonResult;
|
||||||
import com.jeelowcode.tool.framework.common.util.io.FileUtil;
|
import com.jeelowcode.tool.framework.common.util.io.FileUtil;
|
||||||
|
import com.jeelowcode.tool.framework.datapermission.core.annotation.DataPermission;
|
||||||
import com.jeelowcode.tool.framework.security.core.LoginUser;
|
import com.jeelowcode.tool.framework.security.core.LoginUser;
|
||||||
import com.jeelowcode.tool.framework.security.core.util.SecurityFrameworkUtils;
|
import com.jeelowcode.tool.framework.security.core.util.SecurityFrameworkUtils;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
@@ -43,6 +44,7 @@ import static com.jeelowcode.tool.framework.common.pojo.CommonResult.success;
|
|||||||
@RestController
|
@RestController
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@RequestMapping(JeeLowCodeBaseConstant.REQUEST_URL_START + "/outsidePerson")
|
@RequestMapping(JeeLowCodeBaseConstant.REQUEST_URL_START + "/outsidePerson")
|
||||||
|
@DataPermission(enable=false)
|
||||||
public class OutSidePersonController extends BaseController {
|
public class OutSidePersonController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -296,13 +298,13 @@ public class OutSidePersonController extends BaseController {
|
|||||||
String targetFieldKey = getCaseInsensitiveKey(updateData, fieldName);
|
String targetFieldKey = getCaseInsensitiveKey(updateData, fieldName);
|
||||||
String existPath = updateData.getStr(targetFieldKey);
|
String existPath = updateData.getStr(targetFieldKey);
|
||||||
if (existPath == null || existPath.isEmpty()) {
|
if (existPath == null || existPath.isEmpty()) {
|
||||||
updateData.set(targetFieldKey, uploadPath);
|
updateData.put(fieldName, uploadPath);
|
||||||
} else {
|
} else {
|
||||||
updateData.set(targetFieldKey, existPath + "," + uploadPath);
|
updateData.put(fieldName, existPath + "," + uploadPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusFieldName != null && !statusFieldName.isEmpty()) {
|
if (statusFieldName != null && !statusFieldName.isEmpty()) {
|
||||||
updateData.set(statusFieldName, "是");
|
updateData.put(statusFieldName, "是");
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("处理成功 [{}] - 身份证号: {}, 文件: {}", fieldName, cardId, uploadPath);
|
log.info("处理成功 [{}] - 身份证号: {}, 文件: {}", fieldName, cardId, uploadPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user