Commit 811923f1 by 杨林龙

增加日志

1 parent a0260526
...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller; ...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller;
import cn.com.glsx.stdinterface.dto.ChannelRiskDto; import cn.com.glsx.stdinterface.dto.ChannelRiskDto;
import cn.com.glsx.stdinterface.modules.model.ChannelRiskData; import cn.com.glsx.stdinterface.modules.model.ChannelRiskData;
import cn.com.glsx.stdinterface.modules.service.ChannelRiskService; import cn.com.glsx.stdinterface.modules.service.ChannelRiskService;
import com.alibaba.fastjson.JSON;
import com.glsx.plat.common.annotation.SysLog; import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType; import com.glsx.plat.common.enums.OperateType;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
...@@ -33,6 +34,7 @@ public class ChannelRiskController { ...@@ -33,6 +34,7 @@ public class ChannelRiskController {
@SysLog(module = MODULE, value = "根据车架号和sn查询风控数据", action = OperateType.QUERY) @SysLog(module = MODULE, value = "根据车架号和sn查询风控数据", action = OperateType.QUERY)
@ApiOperation(value = "根据车架号和sn查询风控数据") @ApiOperation(value = "根据车架号和sn查询风控数据")
public R selectByWorkStandSn(@RequestParam(value = "workorderNo") String workorderNo, @RequestParam(value = "vin") String vin, @RequestParam(value = "sn") String sn) { public R selectByWorkStandSn(@RequestParam(value = "workorderNo") String workorderNo, @RequestParam(value = "vin") String vin, @RequestParam(value = "sn") String sn) {
log.info("根据车架号和sn查询风控数据===workorderNo:" + workorderNo + "vin:" + vin + "sn:" + sn);
List<ChannelRiskDto> existDataList = channelRiskService.selectByWorkStandSn(workorderNo, vin, sn); List<ChannelRiskDto> existDataList = channelRiskService.selectByWorkStandSn(workorderNo, vin, sn);
return R.ok().data(existDataList); return R.ok().data(existDataList);
} }
...@@ -41,6 +43,7 @@ public class ChannelRiskController { ...@@ -41,6 +43,7 @@ public class ChannelRiskController {
@SysLog(module = MODULE, value = "插入风控数据", action = OperateType.ADD) @SysLog(module = MODULE, value = "插入风控数据", action = OperateType.ADD)
@ApiOperation(value = "插入风控数据") @ApiOperation(value = "插入风控数据")
public R insertChannelRiskData(@RequestBody ChannelRiskDto newData) { public R insertChannelRiskData(@RequestBody ChannelRiskDto newData) {
log.info("插入风控数据===" + JSON.toJSONString(newData));
ChannelRiskData channelRiskData = new ChannelRiskData(); ChannelRiskData channelRiskData = new ChannelRiskData();
BeanUtils.copyProperties(newData, channelRiskData); BeanUtils.copyProperties(newData, channelRiskData);
channelRiskService.insertChannelRiskData(channelRiskData); channelRiskService.insertChannelRiskData(channelRiskData);
...@@ -51,6 +54,7 @@ public class ChannelRiskController { ...@@ -51,6 +54,7 @@ public class ChannelRiskController {
@SysLog(module = MODULE, value = "修改更新风控数据", action = OperateType.EDIT) @SysLog(module = MODULE, value = "修改更新风控数据", action = OperateType.EDIT)
@ApiOperation(value = "修改更新风控数据") @ApiOperation(value = "修改更新风控数据")
public R updateChannelRiskData(@RequestBody ChannelRiskDto newData) { public R updateChannelRiskData(@RequestBody ChannelRiskDto newData) {
log.info("修改更新风控数据===" + JSON.toJSONString(newData));
ChannelRiskData channelRiskData = new ChannelRiskData(); ChannelRiskData channelRiskData = new ChannelRiskData();
BeanUtils.copyProperties(newData, channelRiskData); BeanUtils.copyProperties(newData, channelRiskData);
channelRiskService.updateChannelRiskData(channelRiskData); channelRiskService.updateChannelRiskData(channelRiskData);
......
...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller; ...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller;
import cn.com.glsx.stdinterface.dto.ElectricInStoreDto; import cn.com.glsx.stdinterface.dto.ElectricInStoreDto;
import cn.com.glsx.stdinterface.modules.model.ElectricInStoreDrive; import cn.com.glsx.stdinterface.modules.model.ElectricInStoreDrive;
import cn.com.glsx.stdinterface.modules.service.ElectricInStoreService; import cn.com.glsx.stdinterface.modules.service.ElectricInStoreService;
import com.alibaba.fastjson.JSON;
import com.glsx.plat.common.annotation.SysLog; import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType; import com.glsx.plat.common.enums.OperateType;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
...@@ -33,6 +34,7 @@ public class ElectricInStoreController { ...@@ -33,6 +34,7 @@ public class ElectricInStoreController {
@SysLog(module = MODULE, value = "查询是否有相同的不在店数据", action = OperateType.QUERY) @SysLog(module = MODULE, value = "查询是否有相同的不在店数据", action = OperateType.QUERY)
@ApiOperation(value = "查询是否有相同的不在店数据") @ApiOperation(value = "查询是否有相同的不在店数据")
public R getElectricInStore(@RequestParam Integer fenceId, @RequestParam String sn, @RequestParam String gpsTime) { public R getElectricInStore(@RequestParam Integer fenceId, @RequestParam String sn, @RequestParam String gpsTime) {
log.info("查询是否有相同的不在店数据===fenceId:" + fenceId + "sn:" + sn + "gpsTime:" + gpsTime);
List<ElectricInStoreDto> electricInStoreList = electricInStoreService.getElectricInStore(fenceId, sn, gpsTime); List<ElectricInStoreDto> electricInStoreList = electricInStoreService.getElectricInStore(fenceId, sn, gpsTime);
return R.ok().data(electricInStoreList); return R.ok().data(electricInStoreList);
} }
...@@ -41,6 +43,7 @@ public class ElectricInStoreController { ...@@ -41,6 +43,7 @@ public class ElectricInStoreController {
@SysLog(module = MODULE, value = "插入不在店的数据", action = OperateType.ADD) @SysLog(module = MODULE, value = "插入不在店的数据", action = OperateType.ADD)
@ApiOperation(value = "插入不在店的数据") @ApiOperation(value = "插入不在店的数据")
public R insertElectricInStore(@RequestBody ElectricInStoreDto newElectricInStore) { public R insertElectricInStore(@RequestBody ElectricInStoreDto newElectricInStore) {
log.info("插入不在店的数据===" + JSON.toJSONString(newElectricInStore));
ElectricInStoreDrive electricInStoreDrive = new ElectricInStoreDrive(); ElectricInStoreDrive electricInStoreDrive = new ElectricInStoreDrive();
BeanUtils.copyProperties(newElectricInStore, electricInStoreDrive); BeanUtils.copyProperties(newElectricInStore, electricInStoreDrive);
electricInStoreService.insertElectricInStore(electricInStoreDrive); electricInStoreService.insertElectricInStore(electricInStoreDrive);
......
...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller; ...@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.controller;
import cn.com.glsx.stdinterface.dto.ElectricFenceDto; import cn.com.glsx.stdinterface.dto.ElectricFenceDto;
import cn.com.glsx.stdinterface.modules.model.ElectricFenceDrive; import cn.com.glsx.stdinterface.modules.model.ElectricFenceDrive;
import cn.com.glsx.stdinterface.modules.service.FenceDriverService; import cn.com.glsx.stdinterface.modules.service.FenceDriverService;
import com.alibaba.fastjson.JSON;
import com.glsx.plat.common.annotation.SysLog; import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType; import com.glsx.plat.common.enums.OperateType;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
...@@ -34,6 +35,7 @@ public class FenceDriverController { ...@@ -34,6 +35,7 @@ public class FenceDriverController {
@SysLog(module = MODULE, value = "查询围栏试驾信息", action = OperateType.QUERY) @SysLog(module = MODULE, value = "查询围栏试驾信息", action = OperateType.QUERY)
@ApiOperation(value = "查询围栏试驾信息") @ApiOperation(value = "查询围栏试驾信息")
public R getFenceDrive(@RequestParam Integer fenceId, @RequestParam String sn, @RequestParam String journeyTime) { public R getFenceDrive(@RequestParam Integer fenceId, @RequestParam String sn, @RequestParam String journeyTime) {
log.info("查询围栏试驾信息===fenceId:" + fenceId + "sn:" + sn + "journeyTime:" + journeyTime);
List<ElectricFenceDto> electricFenceDriveList = fenceDriverService.getFenceDrive(fenceId, sn, journeyTime); List<ElectricFenceDto> electricFenceDriveList = fenceDriverService.getFenceDrive(fenceId, sn, journeyTime);
return R.ok().data(electricFenceDriveList); return R.ok().data(electricFenceDriveList);
} }
...@@ -42,6 +44,7 @@ public class FenceDriverController { ...@@ -42,6 +44,7 @@ public class FenceDriverController {
@SysLog(module = MODULE, value = "插入围栏试驾信息", action = OperateType.ADD) @SysLog(module = MODULE, value = "插入围栏试驾信息", action = OperateType.ADD)
@ApiOperation(value = "插入围栏试驾信息") @ApiOperation(value = "插入围栏试驾信息")
public R insertFenceDrive(@RequestBody ElectricFenceDto newfenceDrive) { public R insertFenceDrive(@RequestBody ElectricFenceDto newfenceDrive) {
log.info("插入围栏试驾信息===" + JSON.toJSONString(newfenceDrive));
ElectricFenceDrive electricFenceDrive = new ElectricFenceDrive(); ElectricFenceDrive electricFenceDrive = new ElectricFenceDrive();
BeanUtils.copyProperties(newfenceDrive, electricFenceDrive); BeanUtils.copyProperties(newfenceDrive, electricFenceDrive);
fenceDriverService.insertFenceDrive(electricFenceDrive); fenceDriverService.insertFenceDrive(electricFenceDrive);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!