test_class.declarator: logger=LoggerFactory.getLogger(SecurityV1ControllerTest.class)
test_class.modifier: private final static
test_class.original_string: private final static Logger logger=LoggerFactory.getLogger(SecurityV1ControllerTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: service/member-service/src/test/java/com/meiduimall/service/member/api/SecurityV1ControllerTest.java
test_class.identifier: SecurityV1ControllerTest
test_class.superclass: extends BaseControllerTest
test_case.body: @Test
  	    public void setPaypwdStatus() throws Exception{
  	    	RequestSetPaypwdStatus requestSetPaypwdStatus=new RequestSetPaypwdStatus();
  	    	requestSetPaypwdStatus.setMemId(memId);
  	    	requestSetPaypwdStatus.setEnable("0");
  	    	ResultActions postResultAction=mockMvc.perform(MockMvcRequestBuilders.post(baseUrl+"/set_paypwd_status")
  	    			.contentType(MediaType.APPLICATION_JSON_UTF8)
  	    			.content(JsonUtils.beanToJson(requestSetPaypwdStatus)))
  	    			.andExpect(status().isOk())
  	    			.andExpect(jsonPath("$.status",is(0)));
  	    	
  	    	postResultAction.andDo(new ResultHandler() {
  				@Override
  				public void handle(MvcResult result) throws Exception {
  					logger.info("单元测试>>设置支付密码开关API>>执行结果:{}",result.getResponse().getContentAsString());;
  				}
  			});
  	    }
test_case.class_method_signature: SecurityV1ControllerTest.setPaypwdStatus()
test_case.full_signature: @Test public void setPaypwdStatus()
test_case.identifier: setPaypwdStatus
test_case.invocations: setMemId setEnable andExpect andExpect perform content contentType post beanToJson isOk status jsonPath is andDo info ());;
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void setPaypwdStatus()
focal_class.declarator: logger=LoggerFactory.getLogger(SecurityV1Controller.class)
focal_class.modifier: private final static
focal_class.original_string: private final static Logger logger=LoggerFactory.getLogger(SecurityV1Controller.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: securityService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private  SecurityService  securityService;
focal_class.type: SecurityService
focal_class.var_name: securityService
focal_class.file: service/member-service/src/main/java/com/meiduimall/service/member/api/SecurityV1Controller.java
focal_class.identifier: SecurityV1Controller
focal_class.class_method_signature: SecurityV1Controller.setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_class.full_signature: @PostMapping(value = "/set_paypwd_status") ResBodyData setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_class.identifier: setPaypwdStatus
focal_class.modifiers: @PostMapping(value = "/set_paypwd_status")
focal_class.parameters: (@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_class.return: ResBodyData
focal_class.signature: ResBodyData setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_class.class_method_signature: SecurityV1Controller.getbackpwdbyphone(@PathVariable(name="phone")String phone)
focal_class.full_signature: @RequestMapping(value = "/getbackpwdbyphone/{phone}",method=RequestMethod.PUT) String getbackpwdbyphone(@PathVariable(name="phone")String phone)
focal_class.identifier: getbackpwdbyphone
focal_class.modifiers: @RequestMapping(value = "/getbackpwdbyphone/{phone}",method=RequestMethod.PUT)
focal_class.parameters: (@PathVariable(name="phone")String phone)
focal_class.return: String
focal_class.signature: String getbackpwdbyphone(@PathVariable(name="phone")String phone)
focal_class.class_method_signature: SecurityV1Controller.updatememberphone(@PathVariable String token)
focal_class.full_signature: @RequestMapping(value = "/updatememberphone/{token}",method=RequestMethod.PUT) public void updatememberphone(@PathVariable String token)
focal_class.identifier: updatememberphone
focal_class.modifiers: @RequestMapping(value = "/updatememberphone/{token}",method=RequestMethod.PUT) public
focal_class.parameters: (@PathVariable String token)
focal_class.return: void
focal_class.signature: void updatememberphone(@PathVariable String token)
focal_method.body: @PostMapping(value = "/set_paypwd_status")
  	ResBodyData setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus) {
  		logger.info("收到设置支付密码开关API请求：",requestSetPaypwdStatus.toString());
  		try {
  			MSMembersGet msMembersGet=new MSMembersGet();
  			BeanUtils.copyProperties(requestSetPaypwdStatus,msMembersGet);
  			ResBodyData resBodyData = securityService.setPaypwdStatus(msMembersGet);
  			logger.info("设置支付密码开关API请求结果  ：{}",resBodyData.toString());
  			return resBodyData;
  		}
  		catch (BizException e) {
  			logger.error("设置支付密码开关API请求异常：{}",e.toString());
  			throw new ApiException(ApiStatusConst.SET_PAYPWD_STATUS_EXCEPTION,ApiStatusConst.getZhMsg(ApiStatusConst.SET_PAYPWD_STATUS_EXCEPTION));
  		}
  	}
focal_method.class_method_signature: SecurityV1Controller.setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_method.full_signature: @PostMapping(value = "/set_paypwd_status") ResBodyData setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_method.identifier: setPaypwdStatus
focal_method.invocations: info copyProperties setPaypwdStatus info error getZhMsg
focal_method.modifiers: @PostMapping(value = "/set_paypwd_status")
focal_method.parameters: (@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)
focal_method.return: ResBodyData
focal_method.signature: ResBodyData setPaypwdStatus(@RequestBody @Valid RequestSetPaypwdStatus requestSetPaypwdStatus)