5 changed files with 129 additions and 0 deletions
-
40src/main/java/com/spring/modules/customer/controller/ProjectInformationController.java
-
12src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java
-
9src/main/java/com/spring/modules/customer/service/ProjectInformationService.java
-
29src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java
-
39src/main/resources/mapper/customer/ProjectInformationMapper.xml
@ -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<PlmProjectInfoData> list = projectInformationService.projectInformationSearch(data); |
|||
return R.ok().put("rows", list); |
|||
} |
|||
|
|||
} |
|||
@ -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<PlmProjectInfoData> projectInformationSearch(PlmProjectInfoData data); |
|||
} |
|||
@ -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<PlmProjectInfoData> projectInformationSearch(PlmProjectInfoData data); |
|||
} |
|||
@ -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<com.spring.modules.project.data.PlmProjectInfoData> |
|||
**/ |
|||
@Override |
|||
public List<PlmProjectInfoData> projectInformationSearch(PlmProjectInfoData data) { |
|||
List<PlmProjectInfoData> list = projectInformationMapper.projectInformationSearch(data); |
|||
return list; |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.spring.modules.customer.mapper.ProjectInformationMapper"> |
|||
|
|||
<!-- 客户项目信息列表 --> |
|||
<select id="projectInformationSearch" parameterType="PlmProjectInfoData" resultType="PlmProjectInfoData"> |
|||
SELECT |
|||
id, |
|||
site, |
|||
project_id, |
|||
ori_project_id, |
|||
project_level, |
|||
project_type_db, |
|||
project_name, |
|||
status, |
|||
project_source, |
|||
customer_id, |
|||
create_by, |
|||
create_date, |
|||
update_by, |
|||
update_date, |
|||
priority, |
|||
project_desc, |
|||
customer_remark, |
|||
remark, |
|||
need_date, |
|||
dbo.get_projectTeamName(site,project_id,'owner') projectOwnerName, |
|||
dbo.get_projectTeamName(site,project_id,'manager') ProjectManagerName, |
|||
dbo.plm_get_projectBaseDesc(project_type_db,'project_type') projectType, |
|||
dbo.plm_get_projectBaseDesc(status,'project_status') projectStatusDesc, |
|||
dbo.plm_get_projectBaseDesc(project_source,'project_source') projectSourceDesc, |
|||
dbo.plm_get_customer_desc(site,customer_id) customerName, |
|||
dbo.plm_get_projectBaseDesc(priority,'project_priority') priorityDesc, |
|||
dbo.get_projectUserRoleName(site,project_id) userRoleName |
|||
FROM plm_project_info |
|||
WHERE site = #{site} and customer_id = #{customerId} |
|||
</select> |
|||
|
|||
</mapper> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue