|
|
|
@ -35,6 +35,8 @@ |
|
|
|
dbo.plm_get_dictDataLabel('project_info_source', a.project_source, a.site) projectSourceDesc, |
|
|
|
dbo.plm_get_customer_desc(a.site, a.customer_id) customerName, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_priority', a.priority, a.site) priorityDesc, |
|
|
|
a.industry, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_industry', a.industry, a.site) industryDesc, |
|
|
|
a.need_date, |
|
|
|
dbo.get_projectUserRoleName(a.site, a.project_id) userRoleName, |
|
|
|
a.parent_project_no, |
|
|
|
@ -90,6 +92,8 @@ |
|
|
|
dbo.plm_get_dictDataLabel('project_info_source', project_source, site) projectSourceDesc, |
|
|
|
dbo.plm_get_customer_desc(site, customer_id) customerName, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_priority', priority, site) priorityDesc, |
|
|
|
industry, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_industry', industry, site) industryDesc, |
|
|
|
need_date, |
|
|
|
dbo.get_projectUserRoleName(site, project_id) userRoleName, |
|
|
|
parent_project_no, |
|
|
|
@ -167,6 +171,8 @@ |
|
|
|
dbo.plm_get_dictDataLabel('project_info_source', project_source, site) projectSourceDesc, |
|
|
|
dbo.plm_get_customer_desc(site, customer_id) customerName, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_priority', priority, site) priorityDesc, |
|
|
|
industry, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_industry', industry, site) industryDesc, |
|
|
|
need_date, |
|
|
|
dbo.get_projectUserRoleName(site, project_id) userRoleName, |
|
|
|
parent_project_no, |
|
|
|
@ -230,16 +236,16 @@ |
|
|
|
<insert id="saveProjectInfo"> |
|
|
|
insert into plm_project_info |
|
|
|
(project_id, ori_project_id, project_type_db, project_name, status, project_source, customer_id, create_by, |
|
|
|
create_date, priority, site, project_desc, customer_remark, remark, need_date, parent_project_no, final_customer_id, |
|
|
|
create_date, priority, industry, site, project_desc, customer_remark, remark, need_date, parent_project_no, final_customer_id, |
|
|
|
customer_Project_No, productSet, project_amount) |
|
|
|
values |
|
|
|
(#{projectId}, #{projectId}, #{projectTypeDb}, #{projectName}, #{status}, #{projectSource}, #{customerId}, #{createBy}, |
|
|
|
GetDate(), #{priority}, #{site}, #{projectDesc}, #{customerRemark}, #{remark}, #{needDate}, #{parentProjectNo}, #{finalCustomerId}, |
|
|
|
GetDate(), #{priority}, #{industry}, #{site}, #{projectDesc}, #{customerRemark}, #{remark}, #{needDate}, #{parentProjectNo}, #{finalCustomerId}, |
|
|
|
#{customerProjectNo}, #{productSet}, #{projectAmount}) |
|
|
|
</insert> |
|
|
|
<update id="updateProjectInfo"> |
|
|
|
update plm_project_info set project_type_db=#{projectTypeDb},project_name=#{projectName},project_source=#{projectSource},status=#{status}, |
|
|
|
customer_id=#{customerId},priority=#{priority},project_desc=#{projectDesc},customer_remark=#{customerRemark},remark=#{remark},need_date=#{needDate}, |
|
|
|
customer_id=#{customerId},priority=#{priority},industry=#{industry},project_desc=#{projectDesc},customer_remark=#{customerRemark},remark=#{remark},need_date=#{needDate}, |
|
|
|
update_by=#{updateBy},update_date=GetDate(),parent_project_no = #{parentProjectNo},final_customer_id=#{finalCustomerId},productSet=#{productSet}, |
|
|
|
customer_Project_No=#{customerProjectNo},project_amount=#{projectAmount} where id=#{id} |
|
|
|
</update> |
|
|
|
@ -614,7 +620,7 @@ |
|
|
|
|
|
|
|
<select id="getProjectData" resultType="com.spring.modules.project.entity.PlmProjectInfo"> |
|
|
|
select project_id,ori_project_id,project_type_db,project_name,status,project_source,customer_id,create_by,create_date, |
|
|
|
update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_date,parent_project_no,final_customer_id |
|
|
|
update_by,update_date,priority,industry,site,id,project_desc,customer_remark,remark,need_date,parent_project_no,final_customer_id |
|
|
|
from plm_project_info where site=#{site} and project_id=#{projectId} |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -782,6 +788,8 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_ |
|
|
|
dbo.plm_get_dictDataLabel('project_info_source', project_source, site) projectSourceDesc, |
|
|
|
dbo.plm_get_customer_desc(site, customer_id) customerName, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_priority', priority, site) priorityDesc, |
|
|
|
industry, |
|
|
|
dbo.plm_get_dictDataLabel('project_info_industry', industry, site) industryDesc, |
|
|
|
need_date, |
|
|
|
dbo.get_projectUserRoleName(site, project_id) userRoleName, |
|
|
|
parent_project_no, |
|
|
|
@ -849,6 +857,8 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_ |
|
|
|
dbo.plm_get_dictDataLabel ('project_info_source', project_source, site) projectSourceDesc, |
|
|
|
dbo.plm_get_customer_desc (site, customer_id) customerName, |
|
|
|
dbo.plm_get_dictDataLabel ('project_info_priority', priority, site) priorityDesc, |
|
|
|
industry, |
|
|
|
dbo.plm_get_dictDataLabel ('project_info_industry', industry, site) industryDesc, |
|
|
|
need_date, |
|
|
|
dbo.get_projectUserRoleName (site, project_id) userRoleName, |
|
|
|
parent_project_no, |
|
|
|
|