优化
This commit is contained in:
@@ -216,11 +216,15 @@ public class FormulaServiceImpl implements FormulaService {
|
||||
double RF_total = 0;
|
||||
//删除明细
|
||||
PDM_BI_FormulaDtl.delete("formula_id='"+formula_id+"'");
|
||||
int mn =1;
|
||||
for(int i = 0;i<tableDtl.size();i++){
|
||||
JSONObject jo = tableDtl.getJSONObject(i);
|
||||
String formuladtl_id = jo.getString("formuladtl_id");
|
||||
jo.put("seq_no",(i+1)+"");
|
||||
|
||||
if(jo.getDouble("formula_qty")<=0){
|
||||
continue;
|
||||
}
|
||||
jo.put("seq_no",(mn)+"");
|
||||
mn++;
|
||||
if("1".equals(jo.getString("is_need_manage"))){
|
||||
billpure_qty = billpure_qty+jo.getDouble("formula_qty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user