Browse Source

客户日志查询接口修复

dist.1.3.0
汤建军 5 months ago
parent
commit
eee6b656b1
  1. 40
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java
  2. 12
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java
  3. 10
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java

40
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java

@ -16,46 +16,19 @@
*/ */
package com.logpm.basicdata.controller; package com.logpm.basicdata.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.basicdata.entity.BasicdataClientEntity;
import com.logpm.basicdata.entity.BasicdataClientLogEntity; import com.logpm.basicdata.entity.BasicdataClientLogEntity;
import com.logpm.basicdata.entity.BasicdataStoreBusinessEntity;
import com.logpm.basicdata.entity.BasicdataStoreContactEntity;
import com.logpm.basicdata.excel.BasicDataClienImporter;
import com.logpm.basicdata.excel.BasicdataClientExcel;
import com.logpm.basicdata.service.IBasicdataClientLogService; import com.logpm.basicdata.service.IBasicdataClientLogService;
import com.logpm.basicdata.service.IBasicdataClientService;
import com.logpm.basicdata.service.IBasicdataStoreBusinessService;
import com.logpm.basicdata.service.IBasicdataStoreContactService;
import com.logpm.basicdata.vo.BasicdataClientVO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.excel.util.ExcelUtil;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.constant.BladeConstant;
import org.springblade.core.tool.utils.DateUtil;
import org.springblade.core.tool.utils.Func;
import org.springblade.system.feign.IUserClient;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse; import javax.annotation.Resource;
import javax.validation.Valid;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;
/** /**
* 基础客户表 控制器 * 基础客户表 控制器
@ -64,23 +37,22 @@ import java.util.Map;
* @since 2023-05-16 * @since 2023-05-16
*/ */
@RestController @RestController
@AllArgsConstructor
@RequestMapping("/clientLog") @RequestMapping("/clientLog")
@Api(value = "基础客户表", tags = "基础客户表接口") @Api(value = "基础客户表", tags = "基础客户表接口")
public class BasicdataClientLogController extends BladeController { public class BasicdataClientLogController extends BladeController {
@Autowired private final IBasicdataClientLogService basicdataClientLogService;
private IBasicdataClientLogService basicdataClientLogService;
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
private R list(@RequestParam Long clientId){ public R list(@RequestParam Long clientId) {
return R.data(basicdataClientLogService.list(Wrappers.<BasicdataClientLogEntity>query().lambda() return R.data(basicdataClientLogService.list(Wrappers.<BasicdataClientLogEntity>query().lambda()
.eq(BasicdataClientLogEntity::getClientId,clientId) .eq(BasicdataClientLogEntity::getClientId, clientId)
) )
); );
} }
} }

12
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java

@ -16,22 +16,10 @@
*/ */
package com.logpm.basicdata.service; package com.logpm.basicdata.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.logpm.basicdata.entity.BasicdataClientEntity;
import com.logpm.basicdata.entity.BasicdataClientLogEntity; import com.logpm.basicdata.entity.BasicdataClientLogEntity;
import com.logpm.basicdata.excel.BasicdataClientExcel;
import com.logpm.basicdata.vo.BasicdataClientVO;
import org.springblade.common.model.dto.NameDTO;
import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.api.R;
import org.springframework.web.multipart.MultipartFile;
import java.security.NoSuchAlgorithmException;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 基础客户表 服务类 * 基础客户表 服务类

10
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java

@ -58,8 +58,10 @@ import org.springblade.system.feign.IUserClient;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.PostConstruct;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
@ -75,10 +77,16 @@ import static org.springblade.common.constant.DictBizConstant.OPEN_ORDER_PAY_WAY
* @since 2023-05-16 * @since 2023-05-16
*/ */
@Slf4j @Slf4j
@Service @Service("basicdataClientLogService")
public class BasicdataClientLogServiceImpl extends BaseServiceImpl<BasicdataClientLogMapper, BasicdataClientLogEntity> implements IBasicdataClientLogService { public class BasicdataClientLogServiceImpl extends BaseServiceImpl<BasicdataClientLogMapper, BasicdataClientLogEntity> implements IBasicdataClientLogService {
@PostConstruct
public void intt(){
log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>11111111");
}
@Override @Override
public boolean saveAppointLog(BasicdataClientLogEntity basicdataClientLogEntity) { public boolean saveAppointLog(BasicdataClientLogEntity basicdataClientLogEntity) {
return this.save(basicdataClientLogEntity); return this.save(basicdataClientLogEntity);

Loading…
Cancel
Save