Browse Source

1127

master
ruanqi 2 years ago
parent
commit
6bd74b520d
  1. 27
      src/main/java/com/spring/modules/project/data/TechnicalCustomerInfoData.java
  2. 11
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

27
src/main/java/com/spring/modules/project/data/TechnicalCustomerInfoData.java

@ -11,6 +11,9 @@ public class TechnicalCustomerInfoData {
private String customerRemark; private String customerRemark;
private String remark; private String remark;
private String finalCustomerId; private String finalCustomerId;
private String pictureAddess;
private String customerPictureChangeRemark;
private String productionFileComments;
public Integer getId() { public Integer getId() {
return id; return id;
} }
@ -66,4 +69,28 @@ public class TechnicalCustomerInfoData {
public void setFinalCustomerId(String finalCustomerId) { public void setFinalCustomerId(String finalCustomerId) {
this.finalCustomerId = finalCustomerId; this.finalCustomerId = finalCustomerId;
} }
public String getPictureAddess() {
return pictureAddess;
}
public void setPictureAddess(String pictureAddess) {
this.pictureAddess = pictureAddess;
}
public String getCustomerPictureChangeRemark() {
return customerPictureChangeRemark;
}
public void setCustomerPictureChangeRemark(String customerPictureChangeRemark) {
this.customerPictureChangeRemark = customerPictureChangeRemark;
}
public String getProductionFileComments() {
return productionFileComments;
}
public void setProductionFileComments(String productionFileComments) {
this.productionFileComments = productionFileComments;
}
} }

11
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -9,6 +9,8 @@
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer, dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'engineer') engineer,
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician, dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'technician') technician,
dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id dbo.get_technicalSpecificationTeamName(a.site,a.code_no,'quotationOfficer') quotationOfficer,c.customer_Id
,a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments,a.bom_type,a.eng_chg_level,a.bom_alternative_no,a.routing_type,a.routing_revision,
a.routing_alternative_no
FROM plm_technical_specification_sheet a FROM plm_technical_specification_sheet a
left join plm_project_part b on a.site=b.site and a.project_id=b.project_id and a.test_part_no=b.test_part_no left join plm_project_part b on a.site=b.site and a.project_id=b.project_id and a.test_part_no=b.test_part_no
left join plm_project_info c on a.site=c.site and a.project_id=c.project_id left join plm_project_info c on a.site=c.site and a.project_id=c.project_id
@ -18,6 +20,9 @@
</if> </if>
<if test="query.site != null and query.site != ''"> <if test="query.site != null and query.site != ''">
AND a.site = #{query.site} AND a.site = #{query.site}
</if>
<if test="query.oriCodeNo != null and query.oriCodeNo != ''">
AND a.ori_code_no like #{query.oriCodeNo}
</if> </if>
<if test="query.codeNo != null and query.codeNo != ''"> <if test="query.codeNo != null and query.codeNo != ''">
AND a.code_no like #{query.codeNo} AND a.code_no like #{query.codeNo}
@ -28,6 +33,9 @@
<if test="query.testPartNo != null and query.testPartNo != ''"> <if test="query.testPartNo != null and query.testPartNo != ''">
AND a.test_part_no like #{query.testPartNo} AND a.test_part_no like #{query.testPartNo}
</if> </if>
<if test="query.statusDesc != null and query.statusDesc != ''">
AND dbo.plm_get_technicalBaseDesc(a.status,'status') like #{query.statusDesc}
</if>
</where> </where>
order by a.code_no desc order by a.code_no desc
</select> </select>
@ -59,7 +67,8 @@
</select> </select>
<select id="getTechnicalCustomerInfoData" resultType="TechnicalCustomerInfoData"> <select id="getTechnicalCustomerInfoData" resultType="TechnicalCustomerInfoData">
select a.id,b.customer_id,c.customer_desc as customerName,c.customer_description as customerDesc ,b.customer_Remark,b.remark
select a.id,b.customer_id,c.customer_desc as customerName,c.customer_description as customerDesc ,b.customer_Remark,b.remark,
a.picture_addess,a.customerPictureChangeRemark,a.productionFileComments
from plm_technical_specification_sheet a from plm_technical_specification_sheet a
left join plm_project_info b on a.site=b.site and a.project_id=b.project_id left join plm_project_info b on a.site=b.site and a.project_id=b.project_id
left join plm_customer_information c on b.site=c.site and b.customer_id=c.customer_no where a.id=#{id} left join plm_customer_information c on b.site=c.site and b.customer_id=c.customer_no where a.id=#{id}

Loading…
Cancel
Save