Commit 3e44293e by zhaoxiaolei

修改集成superbom逻辑

parent 2a6af525
......@@ -109,4 +109,6 @@ public interface CtoBomMapper extends IBaseMapper<ConfigurableBom>
ConfigurableBom getConfigId(String h3cPn);
ProductGroup getProductGroup(String classification);
ConfigurableBom getCto(String superBomCode);
}
......@@ -97,7 +97,7 @@ public class IntegrateServiceImpl implements IntegrateService {
configurableBom.setBrand(saveSuperBomInputDto.getBrand());
configurableBom.setRevision(saveSuperBomInputDto.getRevision());
configurableBom.setType(saveSuperBomInputDto.getType());
ConfigurableBom getOne = ctoBomMapper.getCtoBomsByCode(configurableBom.getSuperBomCode(), configurableBom.getProductClassName());
ConfigurableBom getOne = ctoBomMapper.getCto(configurableBom.getSuperBomCode());
if (!ObjectUtils.isEmpty(getOne)) {
BeanUtils.copyProperties(configurableBom, getOne);
ConfigurableBomLog log = new ConfigurableBomLog();
......
......@@ -379,4 +379,8 @@
<select id="getProductGroup" resultType="cn.com.uitech.authorization.pojo.entity.ProductGroup">
select * from a_productclasscode where product_class_code = #{classification}
</select>
<select id="getCto" resultMap="superBomInfo">
select * from super_bom_info where super_bom_code = #{superBomCode}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment