Commit b60489f3 by 宋祥

1.fixBug:附件上传,取消业务ID限制

parent 996ba97d
...@@ -62,8 +62,6 @@ public class ServiceHGDM099 extends ServiceEPBase { ...@@ -62,8 +62,6 @@ public class ServiceHGDM099 extends ServiceEPBase {
public EiInfo upload(EiInfo inInfo) { public EiInfo upload(EiInfo inInfo) {
try { try {
HGDM099 fDm099 = MapUtils.toDaoEPBase(inInfo, HGDM099.class); HGDM099 fDm099 = MapUtils.toDaoEPBase(inInfo, HGDM099.class);
AssertUtils.isEmpty(fDm099.getBizId(), "业务ID不能为空");
AssertUtils.isEmpty(fDm099.getBizType(), "业务类型不能为空");
AssertUtils.isEmpty(fDm099.getDocId(), "文件ID不能为空"); AssertUtils.isEmpty(fDm099.getDocId(), "文件ID不能为空");
fDm099.setDeleteFlag(CommonConstant.YesNo.NO_0); fDm099.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.insert(HGDM099.INSERT, fDm099); DaoUtils.insert(HGDM099.INSERT, fDm099);
......
package com.baosight.hggp.hg.dm.tools; package com.baosight.hggp.hg.dm.tools;
import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.constant.S3Constant;
import com.baosight.hggp.core.dao.DaoBase; import com.baosight.hggp.core.dao.DaoBase;
import com.baosight.hggp.hg.dm.domain.HGDM099; import com.baosight.hggp.hg.dm.domain.HGDM099;
import com.baosight.hggp.util.AssertUtils; import com.baosight.hggp.util.AssertUtils;
...@@ -14,7 +12,7 @@ import java.util.Map; ...@@ -14,7 +12,7 @@ import java.util.Map;
* @author:songx * @author:songx
* @date:2024/8/13,16:40 * @date:2024/8/13,16:40
*/ */
public class HpDmTools { public class HgDmTools {
/** /**
* @author:songx * @author:songx
...@@ -23,24 +21,11 @@ public class HpDmTools { ...@@ -23,24 +21,11 @@ public class HpDmTools {
public static class HpDm099 { public static class HpDm099 {
/** /**
* 查询
* *
* @param bizType * @param bizType
* @param bizId * @param docId
* @return * @return
*/ */
public static List<HGDM099> list(String bizType, String bizId) {
AssertUtils.isEmpty(bizId, "业务ID不能为空");
Map<String, Object> paramMap = new HashMap();
paramMap.put(HGDM099.FIELD_BIZ_TYPE, bizType);
paramMap.put(HGDM099.FIELD_BIZ_ID, bizId);
if (CommonConstant.FileLocation.S3.equalsIgnoreCase(S3Constant.FILE_LOCATION)) {
return DaoBase.getInstance().query("HGDM099.queryS3", paramMap);
} else {
return DaoBase.getInstance().query("HGDM099.queryLocal", paramMap);
}
}
public static List<HGDM099> getByDocId(String bizType, String docId) { public static List<HGDM099> getByDocId(String bizType, String docId) {
AssertUtils.isEmpty(docId, "文件ID不能为空"); AssertUtils.isEmpty(docId, "文件ID不能为空");
Map<String, Object> paramMap = new HashMap(); Map<String, Object> paramMap = new HashMap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment