Commit 6987837e by weijiguang

添加错误日志

parent ce1ffe8c
...@@ -14,6 +14,7 @@ import com.soss.system.service.impl.OrderTakingServiceImpl; ...@@ -14,6 +14,7 @@ import com.soss.system.service.impl.OrderTakingServiceImpl;
import com.soss.system.service.impl.ShopServiceImpl; import com.soss.system.service.impl.ShopServiceImpl;
import com.soss.system.utils.DistanceUtil; import com.soss.system.utils.DistanceUtil;
import io.jsonwebtoken.lang.Assert; import io.jsonwebtoken.lang.Assert;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -22,6 +23,7 @@ import java.util.concurrent.TimeUnit; ...@@ -22,6 +23,7 @@ import java.util.concurrent.TimeUnit;
@RestController @RestController
@RequestMapping("/application") @RequestMapping("/application")
@Slf4j
public class ApplicationController { public class ApplicationController {
@Autowired @Autowired
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
...@@ -99,6 +101,8 @@ public class ApplicationController { ...@@ -99,6 +101,8 @@ public class ApplicationController {
throw new ServiceException("该机器未绑定店铺,请先绑定店铺"); throw new ServiceException("该机器未绑定店铺,请先绑定店铺");
} }
log.info("jgRegister, machineCode:{}, screenNo:{}, registerId:{}", machineCode, screenNo, screenNo);
if (screenNo == null) { if (screenNo == null) {
screenNo = 1; screenNo = 1;
} }
...@@ -111,8 +115,9 @@ public class ApplicationController { ...@@ -111,8 +115,9 @@ public class ApplicationController {
machineService.saveMachineScreenRef(Integer.parseInt(machine.getId()), screenNo, registerId); machineService.saveMachineScreenRef(Integer.parseInt(machine.getId()), screenNo, registerId);
return AjaxResult.success(); return AjaxResult.success();
} }
@RequestMapping("/getOrderTaking") @RequestMapping("/getOrderTaking")
public AjaxResult getOrderTaking(String machineCode){ public AjaxResult getOrderTaking(String machineCode) {
return AjaxResult.success(orderTakingService.getMachineInfo(machineCode)); return AjaxResult.success(orderTakingService.getMachineInfo(machineCode));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment