优化
This commit is contained in:
@@ -673,7 +673,10 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
|
|||||||
phyDtlTab.insert(oldPhydtl);
|
phyDtlTab.insert(oldPhydtl);
|
||||||
}
|
}
|
||||||
// 将老的理化单主表设置为 无效,将新的质检单设置为有效
|
// 将老的理化单主表设置为 无效,将新的质检单设置为有效
|
||||||
this.setValid(jsonPhyMst);
|
HashMap<String,String> map = new HashMap<String,String>();
|
||||||
|
map.put("is_effective", "0");
|
||||||
|
phyMstTab.update(map,"material_id='" + material_id + "' and pcsn = '" + pcsn + "' and inspection_id <> '" + jsonPhyMst.getString("inspection_id") + "'");
|
||||||
|
|
||||||
// 更新一级质检单明细表
|
// 更新一级质检单明细表
|
||||||
JSONObject sheetdtl = sheetDtlTab.query("material_id = '" + jsonPhyMst.getString("material_id") + "' and pcsn = '" + jsonPhyMst.getString("pcsn") + "'").uniqueResult(0);
|
JSONObject sheetdtl = sheetDtlTab.query("material_id = '" + jsonPhyMst.getString("material_id") + "' and pcsn = '" + jsonPhyMst.getString("pcsn") + "'").uniqueResult(0);
|
||||||
sheetdtl.put("bill_status", "30");
|
sheetdtl.put("bill_status", "30");
|
||||||
|
|||||||
Reference in New Issue
Block a user