Commit e301f858 by zhaoxiaolei

集成superbom产品组名称

parent d7dbd907
......@@ -107,4 +107,6 @@ public interface CtoBomMapper extends IBaseMapper<ConfigurableBom>
SuperBomSkuInfo getSkuInfo(GetSkuInputInfo getSkuInputInfo);
ConfigurableBom getConfigId(String h3cPn);
ProductGroup getProductGroup(String classification);
}
......@@ -89,8 +89,9 @@ public class IntegrateServiceImpl implements IntegrateService {
configurableBom.setSuperBomName(saveSuperBomInputDto.getScuxItemName());
configurableBom.setDescription(saveSuperBomInputDto.getDescription());
configurableBom.setModelStatus(saveSuperBomInputDto.getStatusCode());
ProductGroup productGroupList = ctoBomMapper.getProductGroup(saveSuperBomInputDto.getClassification());
configurableBom.setProductClassCode(saveSuperBomInputDto.getClassification());
configurableBom.setProductClassName(saveSuperBomInputDto.getClassification());
configurableBom.setProductClassName(productGroupList.getProductClassName());
configurableBom.setUnisSalesName(saveSuperBomInputDto.getScuxItemName());
configurableBom.setBrand(saveSuperBomInputDto.getBrand());
configurableBom.setRevision(saveSuperBomInputDto.getRevision());
......
......@@ -375,4 +375,8 @@
<select id="getConfigId" resultType="cn.com.uitech.authorization.pojo.entity.ConfigurableBom">
select * from super_bom_info where h3c_pn = #{h3cPn}
</select>
<select id="getProductGroup" resultType="cn.com.uitech.authorization.pojo.entity.ProductGroup">
select * from a_productclasscode where product_class_code = #{classification}
</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