2022-11-14 14:50 되돌리기 수정
This commit is contained in:
parent
dd17bbeed2
commit
f0ede05001
@ -444,7 +444,7 @@ public class DntServiceImpl implements DntService {
|
|||||||
|
|
||||||
, p_adrHstryMgrSeq //, String p_adrHstryMgrSeq
|
, p_adrHstryMgrSeq //, String p_adrHstryMgrSeq
|
||||||
//, "UI" //, String p_useCd I/U/UI/II/RE
|
//, "UI" //, String p_useCd I/U/UI/II/RE
|
||||||
, "I" //, String p_useCd I/U/UI/II/RE
|
, "U" //, String p_useCd I/U/UI/II/RE
|
||||||
, "ADR_APP_MGR" //, String p_tableName
|
, "ADR_APP_MGR" //, String p_tableName
|
||||||
, " SET SBMT_YN = '"+s_sbmt_yn+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
, " SET SBMT_YN = '"+s_sbmt_yn+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
||||||
|
|
||||||
@ -470,6 +470,7 @@ public class DntServiceImpl implements DntService {
|
|||||||
, " SET APPR_YN = '"+((dntVOTmp.getApprYn()!=null)?dntVOTmp.getApprYn():null)+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
, " SET APPR_YN = '"+((dntVOTmp.getApprYn()!=null)?dntVOTmp.getApprYn():null)+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//이력관리를 위한 adr_hstry_mgr 데이터 관리 추가 - 2022-08-09
|
//이력관리를 위한 adr_hstry_mgr 데이터 관리 추가 - 2022-08-09
|
||||||
//adr_hstry_mgr에 값 넣기 - 시작
|
//adr_hstry_mgr에 값 넣기 - 시작
|
||||||
adrHstryMgrDAO.insert4Func(dntVO.getAdrSeq()
|
adrHstryMgrDAO.insert4Func(dntVO.getAdrSeq()
|
||||||
@ -485,7 +486,7 @@ public class DntServiceImpl implements DntService {
|
|||||||
, "U" //, String p_useCd I/U/UI/II/RE
|
, "U" //, String p_useCd I/U/UI/II/RE
|
||||||
, "ADR_APP_MGR" //, String p_tableName
|
, "ADR_APP_MGR" //, String p_tableName
|
||||||
|
|
||||||
, " SET APPR_YN = null WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
, " SET APPR_YN = '"+dntVOTmp.getApprYn()+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery
|
||||||
|
|
||||||
);
|
);
|
||||||
//adr_hstry_mgr에 값 넣기 - 끝
|
//adr_hstry_mgr에 값 넣기 - 끝
|
||||||
|
|||||||
@ -159,6 +159,10 @@ public class AdrHstryMgrServiceImpl implements AdrHstryMgrService {
|
|||||||
for (int j=0;j<tDetaillist.size();j++) {
|
for (int j=0;j<tDetaillist.size();j++) {
|
||||||
AdrHstryMgrVO adrHstryMgrDetailTmpVO = tDetaillist.get(j);
|
AdrHstryMgrVO adrHstryMgrDetailTmpVO = tDetaillist.get(j);
|
||||||
|
|
||||||
|
System.out.println("adrHstryMgrDetailTmpVO.getUseCd()");
|
||||||
|
System.out.println(adrHstryMgrDetailTmpVO.getUseCd());
|
||||||
|
System.out.println(adrHstryMgrDetailTmpVO.getAdrHstryMgrDetailSeq());
|
||||||
|
|
||||||
//step3.U,I여부 확인
|
//step3.U,I여부 확인
|
||||||
if (adrHstryMgrDetailTmpVO.getUseCd().equals("I")) {
|
if (adrHstryMgrDetailTmpVO.getUseCd().equals("I")) {
|
||||||
//step3-2-1.I인경우 delete 구문 실행 - Q
|
//step3-2-1.I인경우 delete 구문 실행 - Q
|
||||||
@ -180,6 +184,9 @@ public class AdrHstryMgrServiceImpl implements AdrHstryMgrService {
|
|||||||
|| adrHstryMgrDetailTmpVO.getUseCd().equals("II")) {
|
|| adrHstryMgrDetailTmpVO.getUseCd().equals("II")) {
|
||||||
//변경 불가한 수정, 저장 이므로 skip 한다.
|
//변경 불가한 수정, 저장 이므로 skip 한다.
|
||||||
|
|
||||||
|
}else if (adrHstryMgrDetailTmpVO.getUseCd().equals("V")) {
|
||||||
|
//보기만 한 경우, skip 한다.
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
//step3-1.가 아니면 오류발생 rollback 한다. - Q
|
//step3-1.가 아니면 오류발생 rollback 한다. - Q
|
||||||
//step3-2.면 처리
|
//step3-2.면 처리
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user