Commit 3dbc1855 by liuyang

2024-07-24 报工提交添加附件保存

parent ff7c524f
......@@ -4,9 +4,11 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.hg.constant.HGConstant;
import com.baosight.hggp.hg.sb.domain.HGSB004A;
import com.baosight.hggp.hg.sc.domain.HGSC006A;
import com.baosight.hggp.hg.sc.domain.HGSC007;
import com.baosight.hggp.hg.sc.domain.HGSC008;
import com.baosight.hggp.hg.sc.domain.HGSC099;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.zl.tools.HGZLTools;
import com.baosight.hggp.util.*;
......@@ -62,7 +64,19 @@ public class ServiceHGSC007A extends ServiceEPBase {
@OperationLogAnnotation(operModul = "生产报工", operType = "报工", operDesc = "保存")
public EiInfo save(EiInfo inInfo) {
try{
HGSCTools.THGSC008.add(inInfo);
Map resultMap = EiInfoUtils.getFirstRow(inInfo, EiConstant.resultBlock);
HGSC008 hgsc008 =HGSCTools.THGSC008.add(inInfo);
String docId = org.apache.commons.collections.MapUtils.getString(resultMap, HGSB004A.FIELD_DOC_ID);
if (StringUtils.isNotEmpty(docId)) {
String [] docIds = docId.split(",");
for (String docIdStr : docIds){
HGSC099 hgsc099 = new HGSC099();
hgsc099.setBizType("SCBG");
hgsc099.setDocId(docIdStr);
hgsc099.setMatId(hgsc008.getMatId());
DaoUtils.insert(HGSC099.INSERT, hgsc099);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("保存成功!");
} catch (Exception e) {
......@@ -70,8 +84,6 @@ public class ServiceHGSC007A extends ServiceEPBase {
}
return inInfo;
}
}
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