外协人员批量上传附件 修改附件框大小2

This commit is contained in:
2025-11-21 18:08:53 +08:00
parent 79f015b741
commit 1703e382a6
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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);