添加作废的二维码日志。

dev_0531
kevin jiang 5 years ago
parent 149c6ba95a
commit 524fab697a

@ -191,8 +191,7 @@ public class StoreStaffController extends BaseController {
@ResponseBody
public Map<String, Object> cancelQrCode(@RequestParam("cpUserId") String cpUserId, @RequestParam("state") String state) {
try {
boolean b = storeEmployeeService.cancelQrCodeFromBSD(cpUserId,state);
return data(b);
return data(storeEmployeeService.cancelQrCodeFromBSDNew(cpUserId,state));
} catch (Exception e) {
log.error("作废二维码", e);
return fail();

@ -904,6 +904,26 @@ public class StoreEmployeeService {
return bsdResponse.getSuccess();
}
/**
*
*
* @param cpUserId ID
* @param state
* @return
* @throws Exception
* @author dexiang.jiang
* @date 2020/05/05 17:24
*/
public String cancelQrCodeFromBSDNew(String cpUserId, String state) {
String url = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Map<String, Object> params = new HashMap<>();
params.put("userId", cpUserId);
params.put("state", state);
String message = HttpClientUtil.httpPost(cancelQrCode + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
return message;
}
/**
*
*

Loading…
Cancel
Save