c禅道bug修改

master
anthonywj 2 years ago
parent 6f0c8809d6
commit 811502f3fc

@ -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);
} }
} }

@ -34,7 +34,7 @@
(select name from basic_bussiness_type where action = basic_bustype_pre.originAction) originName, (select name from basic_bussiness_type where action = basic_bustype_pre.originAction) originName,
(select name (select name
from basic_bussiness_type from basic_bussiness_type
where basic_bussiness_type.originAction = basic_bustype_pre.action) targetName, where basic_bussiness_type.action = basic_bustype_pre.action) targetName,
(select basic_bustype_change.originName (select basic_bustype_change.originName
from basic_bustype_change from basic_bustype_change
where basic_bustype_change.originAction = basic_bustype_pre.targetBusAction) targetBusName where basic_bustype_change.originAction = basic_bustype_pre.targetBusAction) targetBusName

Loading…
Cancel
Save