|
|
@@ -219,7 +219,7 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
HttpUtil.Response res = HttpUtil.sendGetRequest(url, formData);
|
|
|
if (res.getStatusCode() == 200) {
|
|
|
List<ProductUsers> users = FlexJsonUtils.fromJsonArray(res.getResponseText(), ProductUsers.class);
|
|
|
- users = getProductReplaceByEnUUAndCmpCode(item.getInquiry().getEnUU(), cmpCode, users);
|
|
|
+ users = getProductReplaceByEnUUAndCmpCode(item.getInquiry().getRecorderUU(), cmpCode, users);
|
|
|
if (!CollectionUtils.isEmpty(users)) {
|
|
|
List<MessageModel> models = new ArrayList<MessageModel>();
|
|
|
for (ProductUsers user : users) {
|
|
|
@@ -279,12 +279,12 @@ public class PublicInquiryServiceImpl implements PublicInquiryService {
|
|
|
* @param cmpCode 物料原厂型号
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<ProductUsers> getProductReplaceByEnUUAndCmpCode(final Long enUU, final String cmpCode, List<ProductUsers> productUsers) {
|
|
|
+ public List<ProductUsers> getProductReplaceByEnUUAndCmpCode(final Long userUU, final String cmpCode, List<ProductUsers> productUsers) {
|
|
|
List<ProductReplace> productReplacesList = productReplaceDao.findAll(new Specification<ProductReplace>() {
|
|
|
@Override
|
|
|
public Predicate toPredicate(Root<ProductReplace> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
|
|
|
final PredicateFactory<ProductReplace> factory = new PredicateFactory<>();
|
|
|
- factory.add(PredicateUtils.ne("enuu", enUU, false));
|
|
|
+ factory.add(PredicateUtils.ne("userUU", userUU, false));
|
|
|
factory.add(PredicateUtils.and (PredicateUtils.isNotNull("ptrCmpcode"), PredicateUtils.eq("ptrCmpcode", cmpCode, false)));
|
|
|
query.where(factory.toPredicate(root, query, cb));
|
|
|
return null;
|