This commit is contained in:
zds
2022-11-21 16:46:21 +08:00
parent 1b9cc4efc4
commit 0a8ca1c4c9

View File

@@ -673,7 +673,10 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
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);
sheetdtl.put("bill_status", "30");