|
@@ -20,6 +20,7 @@ import com.dbs.consentServer.VO.hospitalVO.GetPatientInfoVO;
|
|
|
import com.dbs.consentServer.VO.hospitalVO.GetPatientVO;
|
|
|
import com.dbs.consentServer.VO.hospitalVO.GetUserDeptVO;
|
|
|
import com.dbs.consentServer.VO.hospitalVO.GetWardDeptVO;
|
|
|
+
|
|
|
import com.dbs.consentServer.service.HospitalService;
|
|
|
import com.dbs.consentServer.util.CommonUtils;
|
|
|
|
|
@@ -65,8 +66,27 @@ public class HospitalSvc {
|
|
|
* @param instCd
|
|
|
*/
|
|
|
@RequestMapping(path="updateUserSetUp", method=RequestMethod.POST)
|
|
|
- public void updateUserSetup(String userId, String status, String instCd) {
|
|
|
+ public ArrayList<HashMap<String, Object>> updateUserSetup(String userId, String status, String instCd) {
|
|
|
+ ArrayList<HashMap<String, Object>> result = new ArrayList<HashMap<String, Object>>();
|
|
|
+ HashMap<String, Object> map = new HashMap<String, Object>();
|
|
|
+ HashMap<String, String> params = new HashMap<String, String>();
|
|
|
+
|
|
|
+ params.put("instCd", instCd);
|
|
|
+ params.put("status", status);
|
|
|
+ params.put("userId", userId);
|
|
|
+
|
|
|
+ int rts = hospitalService.updateUserSetUp(params);
|
|
|
|
|
|
+ if (rts == 0) {
|
|
|
+ map.put("code", "01");
|
|
|
+ } else {
|
|
|
+ map.put("code", "00");
|
|
|
+ map.put("data", rts);
|
|
|
+ }
|
|
|
+
|
|
|
+ result.add(map);
|
|
|
+
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
/**
|