Commit 329af393 by 宋祥

1.fixBug:文件ID校验

parent 50efed8b
...@@ -6,6 +6,7 @@ import com.baosight.hpjx.core.dao.DaoUtils; ...@@ -6,6 +6,7 @@ import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.core.utils.Iplat4jUtils; import com.baosight.hpjx.core.utils.Iplat4jUtils;
import com.baosight.hpjx.hp.dm.domain.HPDM099; import com.baosight.hpjx.hp.dm.domain.HPDM099;
import com.baosight.hpjx.hp.xs.domain.HPXS007A; import com.baosight.hpjx.hp.xs.domain.HPXS007A;
import com.baosight.hpjx.util.AssertUtils;
import com.baosight.hpjx.util.LogUtils; import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.MapUtils; import com.baosight.hpjx.util.MapUtils;
import com.baosight.iplat4j.core.ProjectInfo; import com.baosight.iplat4j.core.ProjectInfo;
...@@ -65,6 +66,7 @@ public class ServiceHPDM099 extends ServiceEPBase { ...@@ -65,6 +66,7 @@ public class ServiceHPDM099 extends ServiceEPBase {
public EiInfo upload(EiInfo inInfo) { public EiInfo upload(EiInfo inInfo) {
try { try {
HPDM099 fDm099 = MapUtils.toDaoEPBase(inInfo, HPDM099.class); HPDM099 fDm099 = MapUtils.toDaoEPBase(inInfo, HPDM099.class);
AssertUtils.isEmpty(fDm099.getDocId(), "文件ID不能为空");
fDm099.setDeleteFlag(CommonConstant.YesNo.NO_0); fDm099.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.insert(HPDM099.INSERT, fDm099); DaoUtils.insert(HPDM099.INSERT, fDm099);
inInfo.setStatus(EiConstant.STATUS_DEFAULT); inInfo.setStatus(EiConstant.STATUS_DEFAULT);
......
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