Browse Source

2024-10-21

master
qiezi 2 years ago
parent
commit
dd26f7ffd1
  1. 2
      src/main/java/com/spring/modules/test/mapper/TestInformationMapper.java
  2. 8
      src/main/java/com/spring/modules/test/service/impl/TestPropertiesServiceImpl.java
  3. 7
      src/main/resources/mapper/quotation/QuotationInformationMapper.xml
  4. 11
      src/main/resources/mapper/test/TestInformationMapper.xml

2
src/main/java/com/spring/modules/test/mapper/TestInformationMapper.java

@ -40,4 +40,6 @@ public interface TestInformationMapper extends BaseMapper<TestInformationEntity>
@Param("itemDesc")String itemDesc,
@Param("codeType")String testCodeType,
@Param("list") List<String> list);
List<PlmPropertiesItemAvailable> queryAvailableList(TestPropertiesVo testPropertiesVo);
}

8
src/main/java/com/spring/modules/test/service/impl/TestPropertiesServiceImpl.java

@ -23,7 +23,13 @@ public class TestPropertiesServiceImpl extends ServiceImpl<TestPropertiesMapper,
private TestInformationMapper testInformationMapper;
@Override
public List<TestPropertiesVo> searchTestPropertiesList(TestProperties testProperties) {
return testInformationMapper.searchTestPropertiesVo(testProperties.getSite(),testProperties.getTestNo(),Constant.TEST_CODE_NO);
List<TestPropertiesVo> list = testInformationMapper.searchTestPropertiesVo(testProperties.getSite(), testProperties.getTestNo(), Constant.TEST_CODE_NO);
for (TestPropertiesVo testPropertiesVo : list) {
if ("Y".equalsIgnoreCase(testPropertiesVo.getValueChooseFlag())){
testPropertiesVo.setList(testInformationMapper.queryAvailableList(testPropertiesVo));
}
}
return list;
}
@Override

7
src/main/resources/mapper/quotation/QuotationInformationMapper.xml

@ -496,14 +496,15 @@
a.default_value,
a.value_type,
a.value_type_db,
a.value_choose_flag,
a.max_value,
a.min_value,
c.ValueChooseFlag as value_choose_flag,
c.MaxValue as max_value,
c.MinValue as min_value,
a.text_value,
a.num_value,
a.quotation_no
FROM plm_price_check_properties a
left join plm_properties_model_detail b on a.site = b.site and a.function_type = b.function_type and b.code_no = #{codeNo} and a.item_no = b.properties_item_no
left join plm_properties_item c on a.function_type = c.itemType and a.item_no = c.itemNo and a.site = c.site
where quotation_no = #{quotationNo} and a.site = #{site} order by b.order_id
</select>

11
src/main/resources/mapper/test/TestInformationMapper.xml

@ -243,7 +243,7 @@
a.default_value,
a.value_type,
a.value_type_db,
a.value_choose_flag,
c.ValueChooseFlag as value_choose_flag,
a.max_value,
a.min_value,
a.text_value,
@ -251,6 +251,7 @@
a.test_no
FROM plm_test_properties a
left join plm_properties_model_detail b on a.site = b.site and a.function_type = b.function_type and b.code_no = #{codeNo} and a.item_no = b.properties_item_no
left join plm_properties_item c on a.site = c.site and a.function_type = c.itemType and a.item_no = c.itemNo
where test_no = #{testNo} and a.site = #{site} order by b.order_id
</select>
@ -306,4 +307,12 @@
)
</if>
</select>
<select id="queryAvailableList" resultType="com.spring.modules.base.entity.PlmPropertiesItemAvailable">
select site, ItemNo, ItemType, ValueNo, AvailableValue, CreatedDate, CreatedBy
from plm_properties_item_available
where site = #{site}
and ItemNo = #{itemNo}
and ItemType = #{functionType}
</select>
</mapper>
Loading…
Cancel
Save