Commit f7df497c by wuwenlong

拆单派工bugfix;

parent 01f88f00
......@@ -6,10 +6,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.core.enums.OrgTypeEnum;
import com.baosight.hggp.hg.constant.HGConstant;
import com.baosight.hggp.hg.sc.domain.HGSC006;
import com.baosight.hggp.hg.sc.domain.HGSC006A;
import com.baosight.hggp.hg.sc.domain.HGSC007;
import com.baosight.hggp.hg.sc.domain.HGSC098;
import com.baosight.hggp.hg.sc.domain.*;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.Org;
import com.baosight.hggp.hg.xs.tools.HGXSTools;
......@@ -114,6 +111,8 @@ public class ServiceHGSC006B extends ServiceBase {
@Override
public EiInfo query(EiInfo inInfo) {
try {
Long orderDetailId = MapUtils.getLong(EiInfoUtils.getFirstRow(inInfo,CommonConstant.Field.DETAIL),HGSC006A.FIELD_id);
inInfo.setCell(EiConstant.queryBlock,0, HGSC007.FIELD_order_detail_id,orderDetailId);
inInfo = super.query(inInfo, HGSC007.QUERY, new HGSC007());
} catch (Throwable e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
......@@ -231,7 +230,7 @@ public class ServiceHGSC006B extends ServiceBase {
HGSCTools.checkAssignedNum(orderDetailId, diffNum);
// 更新子单
hgsc007.setTotalWeight(hgsc007.getSingleWeight().multiply(new BigDecimal(hgsc007.getQuantity())));
DaoUtils.update(HGSC007.UPDATE, dbSc007);
DaoUtils.update(HGSC007.UPDATE, hgsc007);
}
......
......@@ -123,10 +123,10 @@ function query() {
/**
* 页面加载时执行
*/
// $(window).load(function () {
// // 查询
// query();
// })
$(window).load(function () {
// 查询
query();
})
/**
* 保存
......
......@@ -7,6 +7,7 @@
<EF:EFPage title="拆单派工">
<EF:EFRegion id="inqu" title="订单详情">
<EF:EFInput ename="inqu_status-0-orderDetailId" cname="订单详情ID" type="hidden"/>
<EF:EFInput ename="detail-0-projCode" cname="项目号" type="hidden"/>
<EF:EFInput ename="detail-0-productType" cname="产品类型" type="hidden"/>
<EF:EFInput ename="detail-0-id" cname="订单明细ID" type="hidden"/>
......
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