|
@@ -28,7 +28,6 @@ import com.lemon.lifecenter.common.LifeCenterSessionController;
|
|
|
import com.lemon.lifecenter.dto.CenterInfoDTO;
|
|
|
import com.lemon.lifecenter.dto.GroupListDTO;
|
|
|
import com.lemon.lifecenter.dto.LoginDTO;
|
|
|
-import com.lemon.lifecenter.dto.PatientDTO;
|
|
|
import com.lemon.lifecenter.dto.StaffDTO;
|
|
|
import com.lemon.lifecenter.service.CenterService;
|
|
|
import com.lemon.lifecenter.service.GroupListService;
|
|
@@ -145,6 +144,7 @@ public class StaffController extends LifeCenterController {
|
|
|
String groupIdx = LifeCenterFunction.aesEncrypt(config.aesKey, config.IV, String.valueOf(dto.getGroupIdx()));
|
|
|
int centerCode = dto.getCenterCode();
|
|
|
|
|
|
+
|
|
|
GroupListDTO gDto = new GroupListDTO();
|
|
|
List<GroupListDTO> groupList = groupListService.selectGroupList(gDto);
|
|
|
|
|
@@ -158,18 +158,24 @@ public class StaffController extends LifeCenterController {
|
|
|
mv.addObject("groupIdx", groupIdx);
|
|
|
// mv.addObject("centerList", centerList);
|
|
|
mv.addObject( "groupList", groupList );
|
|
|
-
|
|
|
return mv;
|
|
|
}
|
|
|
|
|
|
@RequestMapping( value="edit/update", method=RequestMethod.POST)
|
|
|
public String editUpdate(
|
|
|
HttpServletRequest request,HttpServletResponse response,
|
|
|
- @RequestParam(value="encGroupIdx", required=true) String encGroupIdx,
|
|
|
+ @RequestParam(value="encGroupIdx", required=false, defaultValue = "") String encGroupIdx,
|
|
|
@ModelAttribute("dto") StaffDTO dto ) throws Exception {
|
|
|
- String decryptIdx = LifeCenterFunction.aesDecrypt( config.aesKey, config.IV, encGroupIdx );
|
|
|
+
|
|
|
+ String decryptIdx = "";
|
|
|
+
|
|
|
+ if( !encGroupIdx.equals("") ) {
|
|
|
+ decryptIdx = LifeCenterFunction.aesDecrypt( config.aesKey, config.IV, encGroupIdx );
|
|
|
+ dto.setGroupIdx( Integer.valueOf( decryptIdx ) );
|
|
|
+ }
|
|
|
+
|
|
|
String sesId = LifeCenterSessionController.getSession( request, "sesId" );
|
|
|
- dto.setGroupIdx( Integer.valueOf( decryptIdx ) );
|
|
|
+
|
|
|
dto.setUpdateById(sesId);
|
|
|
|
|
|
int rts = memberService.updateEditMember(dto);
|