diff --git a/src/main/java/com/spring/modules/customer/controller/ProjectInformationController.java b/src/main/java/com/spring/modules/customer/controller/ProjectInformationController.java new file mode 100644 index 00000000..bb806261 --- /dev/null +++ b/src/main/java/com/spring/modules/customer/controller/ProjectInformationController.java @@ -0,0 +1,40 @@ +package com.spring.modules.customer.controller; + +import com.spring.common.utils.R; +import com.spring.modules.customer.entity.CustomerAddressEntity; +import com.spring.modules.customer.service.CustomerAddressService; +import com.spring.modules.customer.service.ProjectInformationService; +import com.spring.modules.customer.vo.CustomerAddressVo; +import com.spring.modules.project.data.PlmProjectInfoData; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * @description: 客户项目信息 + * @author: fengyuan_yang + * @date: 2023/9/1 9:56 + **/ +@RestController +@RequestMapping("plm/projectInformation") +public class ProjectInformationController { + + @Autowired + private ProjectInformationService projectInformationService; + + /** + * @description: 客户项目信息列表 + * @author: fengyuan_yang + * @date: 2023/9/1 10:31 + * @param: [data] + * @return: com.spring.common.utils.R + **/ + @PostMapping(value="/projectInformationSearch") + @ResponseBody + public R projectInformationSearch(@RequestBody PlmProjectInfoData data){ + List list = projectInformationService.projectInformationSearch(data); + return R.ok().put("rows", list); + } + +} diff --git a/src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java b/src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java new file mode 100644 index 00000000..aff65732 --- /dev/null +++ b/src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java @@ -0,0 +1,12 @@ +package com.spring.modules.customer.mapper; + +import com.spring.modules.project.data.PlmProjectInfoData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface ProjectInformationMapper { + + List projectInformationSearch(PlmProjectInfoData data); +} diff --git a/src/main/java/com/spring/modules/customer/service/ProjectInformationService.java b/src/main/java/com/spring/modules/customer/service/ProjectInformationService.java new file mode 100644 index 00000000..16179b1c --- /dev/null +++ b/src/main/java/com/spring/modules/customer/service/ProjectInformationService.java @@ -0,0 +1,9 @@ +package com.spring.modules.customer.service; + +import com.spring.modules.project.data.PlmProjectInfoData; + +import java.util.List; + +public interface ProjectInformationService { + List projectInformationSearch(PlmProjectInfoData data); +} diff --git a/src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java b/src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java new file mode 100644 index 00000000..bc633770 --- /dev/null +++ b/src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java @@ -0,0 +1,29 @@ +package com.spring.modules.customer.service.impl; + +import com.spring.modules.customer.mapper.ProjectInformationMapper; +import com.spring.modules.customer.service.ProjectInformationService; +import com.spring.modules.project.data.PlmProjectInfoData; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class ProjectInformationServiceImpl implements ProjectInformationService { + + @Autowired + private ProjectInformationMapper projectInformationMapper; + + /** + * @description: 客户项目信息列表 + * @author: fengyuan_yang + * @date: 2023/9/7 15:21 + * @param: [data] + * @return: java.util.List + **/ + @Override + public List projectInformationSearch(PlmProjectInfoData data) { + List list = projectInformationMapper.projectInformationSearch(data); + return list; + } +} diff --git a/src/main/resources/mapper/customer/ProjectInformationMapper.xml b/src/main/resources/mapper/customer/ProjectInformationMapper.xml new file mode 100644 index 00000000..058867c1 --- /dev/null +++ b/src/main/resources/mapper/customer/ProjectInformationMapper.xml @@ -0,0 +1,39 @@ + + + + + + + +