1.接口返回值添加第三方产品价格

busUser
x_z 2 years ago
parent 2230a46356
commit e4d407d984

@ -597,6 +597,7 @@ public class UdiRelevanceController {
basicProductThirdSysResponse.setManufactory(thrProductsEntity.getManufactory()); basicProductThirdSysResponse.setManufactory(thrProductsEntity.getManufactory());
basicProductThirdSysResponse.setRegisterNo(thrProductsEntity.getRegisterNo()); basicProductThirdSysResponse.setRegisterNo(thrProductsEntity.getRegisterNo());
basicProductThirdSysResponse.setSpec(thrProductsEntity.getSpec()); basicProductThirdSysResponse.setSpec(thrProductsEntity.getSpec());
basicProductThirdSysResponse.setPrice(thrProductsEntity.getPrice());
} }
} }

@ -45,4 +45,12 @@ public interface ThrProductsDao {
* @param thrProductsEntities * @param thrProductsEntities
*/ */
void importThrProductss(@Param("thrProductsEntities") List<ThrProductsEntity> thrProductsEntities); void importThrProductss(@Param("thrProductsEntities") List<ThrProductsEntity> thrProductsEntities);
/**
*
*
* @param code
* @return
*/
String selectPriceByCode(@Param("code") String code);
} }

@ -11,6 +11,7 @@ public class BasicProductThirdSysResponse {
private String spec; private String spec;
private String registerNo; private String registerNo;
private String manufactory; private String manufactory;
private String price;
} }

@ -1,9 +1,7 @@
package com.glxp.api.admin.service.thrsys; package com.glxp.api.admin.service.thrsys;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsEntity; import com.glxp.api.admin.entity.thrsys.ThrProductsEntity;
import com.glxp.api.admin.req.thrsys.FilterThrProductsRequest; import com.glxp.api.admin.req.thrsys.FilterThrProductsRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -33,4 +31,12 @@ public interface ThrProductsService {
ThrProductsEntity selectByCode(String code, String thirdSysFk); ThrProductsEntity selectByCode(String code, String thirdSysFk);
List<ThrProductsEntity> batchSelectByIds(List<String> codes, String thirdFk); List<ThrProductsEntity> batchSelectByIds(List<String> codes, String thirdFk);
/**
*
*
* @param thirdId
* @return
*/
String selectPriceByCode(String thirdId);
} }

@ -120,4 +120,9 @@ public class ThrProductsServiceImpl implements ThrProductsService {
List<ThrProductsEntity> thrProductsEntities = thrProductsDao.batchSelectByIds(filterThrProductsRequest); List<ThrProductsEntity> thrProductsEntities = thrProductsDao.batchSelectByIds(filterThrProductsRequest);
return thrProductsEntities; return thrProductsEntities;
} }
@Override
public String selectPriceByCode(String thirdId) {
return thrProductsDao.selectPriceByCode(thirdId);
}
} }

@ -309,4 +309,8 @@
#{item.remark3},#{item.price}) #{item.remark3},#{item.price})
</foreach> </foreach>
</insert> </insert>
<select id="selectPriceByCode" resultType="java.lang.String">
select price from thr_products where code = #{code}
</select>
</mapper> </mapper>
Loading…
Cancel
Save