테스트 완료
This commit is contained in:
@@ -1142,6 +1142,12 @@ public class QualityService extends BaseService{
|
||||
String rightDataStr = CommonUtils.checkNull(paramMap.get("rightData"));
|
||||
String existingGroupId = CommonUtils.checkNull(paramMap.get("INSPECTION_GROUP_ID"));
|
||||
String saveType = CommonUtils.checkNull(paramMap.get("saveType"), "all"); // 저장 타입: left, right, all
|
||||
String lockData = CommonUtils.checkNull(paramMap.get("lockData"), "N"); // 잠금 여부: Y, N
|
||||
|
||||
System.out.println("=== saveSemiProductInspection ===");
|
||||
System.out.println("saveType: " + saveType);
|
||||
System.out.println("lockData: " + lockData);
|
||||
System.out.println("existingGroupId: " + existingGroupId);
|
||||
|
||||
org.json.simple.parser.JSONParser parser = new org.json.simple.parser.JSONParser();
|
||||
|
||||
@@ -1200,6 +1206,9 @@ public class QualityService extends BaseService{
|
||||
sqlParamMap.put("DISPOSITION_TYPE", "");
|
||||
sqlParamMap.put("REMARK", "");
|
||||
|
||||
// 잠금 여부 설정
|
||||
sqlParamMap.put("IS_LOCKED", lockData);
|
||||
|
||||
// UPSERT: UPDATE 시도 후 실패하면 INSERT
|
||||
int updateCnt = sqlSession.update("quality.updateSemiProductInspectionData", sqlParamMap);
|
||||
if(updateCnt == 0){
|
||||
@@ -1290,6 +1299,9 @@ public class QualityService extends BaseService{
|
||||
sqlParamMap.put("RECEIPT_QTY", "0");
|
||||
sqlParamMap.put("GOOD_QTY", "0");
|
||||
|
||||
// 잠금 여부 설정
|
||||
sqlParamMap.put("IS_LOCKED", lockData);
|
||||
|
||||
// UPSERT: UPDATE 시도 후 실패하면 INSERT
|
||||
int updateCnt = sqlSession.update("quality.updateSemiProductInspectionData", sqlParamMap);
|
||||
if(updateCnt == 0){
|
||||
|
||||
Reference in New Issue
Block a user