diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java index d3d55910a..f2653f0d7 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientLogController.java @@ -16,46 +16,19 @@ */ 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.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import com.logpm.basicdata.entity.BasicdataClientEntity; 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.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.ApiOperation; -import io.swagger.annotations.ApiParam; import lombok.AllArgsConstructor; 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.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.stereotype.Service; import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; -import springfox.documentation.annotations.ApiIgnore; -import javax.servlet.http.HttpServletResponse; -import javax.validation.Valid; -import java.security.NoSuchAlgorithmException; -import java.util.List; -import java.util.Map; +import javax.annotation.Resource; /** * 基础客户表 控制器 @@ -64,23 +37,22 @@ import java.util.Map; * @since 2023-05-16 */ @RestController +@AllArgsConstructor @RequestMapping("/clientLog") @Api(value = "基础客户表", tags = "基础客户表接口") public class BasicdataClientLogController extends BladeController { - @Autowired - private IBasicdataClientLogService basicdataClientLogService; + private final IBasicdataClientLogService basicdataClientLogService; @GetMapping("/list") @ApiOperationSupport(order = 6) - private R list(@RequestParam Long clientId){ + public R list(@RequestParam Long clientId) { return R.data(basicdataClientLogService.list(Wrappers.query().lambda() - .eq(BasicdataClientLogEntity::getClientId,clientId) + .eq(BasicdataClientLogEntity::getClientId, clientId) ) ); } - } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java index 0a3815ed6..b61a0d3bf 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/IBasicdataClientLogService.java @@ -16,22 +16,10 @@ */ 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.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.tool.api.R; -import org.springframework.web.multipart.MultipartFile; -import java.security.NoSuchAlgorithmException; import java.util.List; -import java.util.Map; /** * 基础客户表 服务类 diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java index f6cf656e8..e10e8915c 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientLogServiceImpl.java +++ b/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.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.multipart.MultipartFile; +import javax.annotation.PostConstruct; import java.security.NoSuchAlgorithmException; import java.text.SimpleDateFormat; import java.util.*; @@ -75,10 +77,16 @@ import static org.springblade.common.constant.DictBizConstant.OPEN_ORDER_PAY_WAY * @since 2023-05-16 */ @Slf4j -@Service +@Service("basicdataClientLogService") public class BasicdataClientLogServiceImpl extends BaseServiceImpl implements IBasicdataClientLogService { + @PostConstruct + public void intt(){ + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>11111111"); + } + + @Override public boolean saveAppointLog(BasicdataClientLogEntity basicdataClientLogEntity) { return this.save(basicdataClientLogEntity);