Browse Source

2024-09-18

master
qiezi 1 year ago
parent
commit
f4cd6aa7f0
  1. 2
      src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java
  2. 6
      src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java
  3. 13
      src/main/resources/mapper/part/PartInformationMapper.xml
  4. 8
      src/main/resources/mapper/quotation/QuotationDetailMapper.xml

2
src/main/java/com/spring/modules/part/mapper/PartInformationMapper.java

@ -238,4 +238,6 @@ public interface PartInformationMapper extends BaseMapper<PartInformationEntity>
void savePartModelHeaders(List<PartSubPropertiesValueHeaderData> modelHeaders); void savePartModelHeaders(List<PartSubPropertiesValueHeaderData> modelHeaders);
void savePartModelDetails(List<PartSubPropertiesValueData> modelDetails); void savePartModelDetails(List<PartSubPropertiesValueData> modelDetails);
List<PartInformationEntity> queryPart(PartInformationVo data);
} }

6
src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

@ -2242,10 +2242,6 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
@Override @Override
public List<PartInformationEntity> queryPart(PartInformationVo data) { public List<PartInformationEntity> queryPart(PartInformationVo data) {
return lambdaQuery()
.eq(PartInformationEntity::getPartNo,data.getPartNo())
.eq(PartInformationEntity::getSite,data.getSite())
.eq(PartInformationEntity::getStatus,"Y")
.list();
return baseMapper.queryPart(data);
} }
} }

13
src/main/resources/mapper/part/PartInformationMapper.xml

@ -1737,4 +1737,17 @@
(#{item.partNo}, #{item.site}, #{item.codeNo}, #{item.subCodeSeqNo,jdbcType=FLOAT}, #{item.subCodeDesc}, #{item.itemNo,jdbcType=FLOAT}, #{item.propertiesItemNo}, #{item.textValue}, #{item.numValue,jdbcType=FLOAT}, #{item.recordType}, #{item.orderId}) (#{item.partNo}, #{item.site}, #{item.codeNo}, #{item.subCodeSeqNo,jdbcType=FLOAT}, #{item.subCodeDesc}, #{item.itemNo,jdbcType=FLOAT}, #{item.propertiesItemNo}, #{item.textValue}, #{item.numValue,jdbcType=FLOAT}, #{item.recordType}, #{item.orderId})
</foreach> </foreach>
</insert> </insert>
<select id="queryPart" resultType="com.spring.modules.part.entity.PartInformationEntity">
select site,
part_no,
part_desc,
spec,
part_type_db,
dbo.get_part_unitCost(site, part_no) as standardCost,
status,
um_id
from part
where site = #{site} and part_no = #{partNo} and status = 'Y'
</select>
</mapper> </mapper>

8
src/main/resources/mapper/quotation/QuotationDetailMapper.xml

@ -250,8 +250,8 @@
code_desc, code_desc,
function_type function_type
FROM plm_properties_model_header FROM plm_properties_model_header
WHERE function_type = 'IP'
AND code_no = 'I001'
WHERE function_type = 'BJ'
AND code_no = 'BJ001'
AND site = #{site} AND site = #{site}
</insert> </insert>
@ -261,8 +261,8 @@
select concat('BJ',#{quotationDetailId}),ppmd.site,ppmd.code_no,1,ppmh.code_desc,seq_no,properties_item_no,'','',ppmd.function_type select concat('BJ',#{quotationDetailId}),ppmd.site,ppmd.code_no,1,ppmh.code_desc,seq_no,properties_item_no,'','',ppmd.function_type
from plm_properties_model_detail ppmd from plm_properties_model_detail ppmd
left join plm_properties_model_header ppmh on ppmh.function_type = ppmd.function_type and ppmh.code_no = ppmd.code_no and ppmh.site = ppmd.site left join plm_properties_model_header ppmh on ppmh.function_type = ppmd.function_type and ppmh.code_no = ppmd.code_no and ppmh.site = ppmd.site
WHERE ppmd.function_type = 'IP'
AND ppmd.code_no = 'I001'
WHERE ppmd.function_type = 'BJ'
AND ppmd.code_no = 'BJ001'
AND ppmd.site = #{site} AND ppmd.site = #{site}
</insert> </insert>

Loading…
Cancel
Save