|
@@ -186,7 +186,7 @@ public class ConsentSvc {
|
|
|
HashMap<String, Object> params = new HashMap<String, Object>();
|
|
|
|
|
|
int rCount = 0;
|
|
|
- String ocrTag = "";
|
|
|
+ // String ocrTag = "";
|
|
|
|
|
|
params.put("userId", userId);
|
|
|
params.put("consentMstRid", consentMstRid);
|
|
@@ -195,22 +195,29 @@ public class ConsentSvc {
|
|
|
rCount = consentService.updateConsentMstForDelete(params);
|
|
|
|
|
|
if (rCount == 0) {
|
|
|
- map.put("code", "01");
|
|
|
+ map.put("code", 01);
|
|
|
} else {
|
|
|
- ocrTag = consentService.getConsentMstForDeleteOcrTag(params);
|
|
|
-
|
|
|
- if (!(ocrTag.equals("") || ocrTag.isEmpty())) {
|
|
|
- params.put("ocrTag", ocrTag);
|
|
|
- rCount = consentService.updateMrfhOcrPrntStatCd(params);
|
|
|
-
|
|
|
- if (rCount == 0) {
|
|
|
- map.put("code", "02");
|
|
|
- } else {
|
|
|
- map.put("code", "00");
|
|
|
- map.put("data", rCount);
|
|
|
- }
|
|
|
- }
|
|
|
+ map.put("code", 00);
|
|
|
+ map.put("data", rCount);
|
|
|
}
|
|
|
+
|
|
|
+ // if (rCount == 0) {
|
|
|
+ // map.put("code", "01");
|
|
|
+ // } else {
|
|
|
+ // ocrTag = consentService.getConsentMstForDeleteOcrTag(params);
|
|
|
+
|
|
|
+ // if (!(ocrTag.equals("") || ocrTag.isEmpty())) {
|
|
|
+ // params.put("ocrTag", ocrTag);
|
|
|
+ // rCount = consentService.updateMrfhOcrPrntStatCd(params);
|
|
|
+
|
|
|
+ // if (rCount == 0) {
|
|
|
+ // map.put("code", "02");
|
|
|
+ // } else {
|
|
|
+ // map.put("code", "00");
|
|
|
+ // map.put("data", rCount);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
result.add(map);
|
|
|
|
|
|
return result;
|