|
|
@ -8,6 +8,7 @@ import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
|
|
|
|
import com.glxp.api.controller.BaseController;
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
import com.glxp.api.entity.system.SystemParamConfigEntity;
|
|
|
|
import com.glxp.api.entity.system.SystemParamConfigEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
|
|
@ -43,7 +44,7 @@ import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
public class UdiRelevanceController {
|
|
|
|
public class UdiRelevanceController extends BaseController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
GennerOrderUtils gennerOrderUtils;
|
|
|
|
GennerOrderUtils gennerOrderUtils;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
@ -160,8 +161,13 @@ public class UdiRelevanceController {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
filterUdiRelRequest.setDiType(1);
|
|
|
|
filterUdiRelRequest.setDiType(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
udiRelevanceResponses = udiRelevanceService.filterUdiGp(filterUdiRelRequest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (isHosUser()) {
|
|
|
|
|
|
|
|
// filterUdiRelRequest.setUnitFk(null);
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// filterUdiRelRequest.setUnitFk(getCustomerId());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
udiRelevanceResponses = udiRelevanceService.filterUdiGp(filterUdiRelRequest);
|
|
|
|
if (udiRelevanceResponses != null && udiRelevanceResponses.size() > 0) {
|
|
|
|
if (udiRelevanceResponses != null && udiRelevanceResponses.size() > 0) {
|
|
|
|
for (UdiRelevanceResponse udiRelevanceResponse : udiRelevanceResponses) {
|
|
|
|
for (UdiRelevanceResponse udiRelevanceResponse : udiRelevanceResponses) {
|
|
|
|
UdiRlSupEntity companyProductRelevanceEntity =
|
|
|
|
UdiRlSupEntity companyProductRelevanceEntity =
|
|
|
@ -289,9 +295,9 @@ public class UdiRelevanceController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//更新关联表
|
|
|
|
//更新关联表
|
|
|
|
if(udiRelevanceSaveRequest.getIsDateBy()!=null && udiRelevanceSaveRequest.getIsDateBy()==1){
|
|
|
|
if (udiRelevanceSaveRequest.getIsDateBy() != null && udiRelevanceSaveRequest.getIsDateBy() == 1) {
|
|
|
|
if(udiRelevanceSaveRequest.getRecentDateTime()!=null){
|
|
|
|
if (udiRelevanceSaveRequest.getRecentDateTime() != null) {
|
|
|
|
int time=udiRelevanceSaveRequest.getRecentDateTime()*24;
|
|
|
|
int time = udiRelevanceSaveRequest.getRecentDateTime() * 24;
|
|
|
|
udiRelevanceSaveRequest.setRecentDateTime(time);
|
|
|
|
udiRelevanceSaveRequest.setRecentDateTime(time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|