1.修复单据类型的bug

2.合并第三方单据查询参数类
3.添加单据的查询参数,修复其他bug
master
x_z 2 years ago
parent 3124dd50cb
commit ce4ad58370

@ -286,9 +286,14 @@ public class BasicBussinessTypeController extends BaseController {
if (StrUtil.isBlank(candidateRequest.getMainAction())) {
return ResultVOUtils.error(ResultEnum.DATA_ERROR);
}
List<BasicBussinessTypeEntity> bussinessTypeEntities = basicBussinessTypeService.candidateBussinessType(candidateRequest.getMainAction());
List<BasicBussinessTypeEntity> list = basicBussinessTypeService.candidateBussinessType(candidateRequest.getMainAction());
if (StrUtil.isNotBlank(candidateRequest.getCurAction())) {
//将此单据已经绑定的平衡补单单据类型添加到候选列表中
BasicBussinessTypeEntity supplementType = basicBussinessTypeService.findByAction(candidateRequest.getCurAction());
list.add(supplementType);
}
//查询补单单据类型
return ResultVOUtils.success(bussinessTypeEntities);
return ResultVOUtils.success(list);
}
/**

@ -1,12 +1,15 @@
package com.glxp.api.controller.inout;
import com.glxp.api.annotation.AuthRuleAnnotation;
import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.inout.IoOrderEntity;
import com.glxp.api.req.inout.FilterOrderRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.service.inout.IoOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@ -19,7 +22,24 @@ import java.util.List;
public class IoOrderController {
@Resource
IoOrderService orderService;
private IoOrderService orderService;
/**
*
*
* @param filterOrderRequest
* @param bindingResult
* @return
*/
@GetMapping("/udiwms/inout/order/filter")
public BaseResponse filterOrder(FilterOrderRequest filterOrderRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
return ResultVOUtils.success();
}
@AuthRuleAnnotation("")
@GetMapping("udiwms/inout/order/draft")

@ -355,7 +355,7 @@ public class ThrOrderController {
}
//只查询第三方单据
@GetMapping("/udiwms/thirdOrder/filter")
public BaseResponse filterThirdOrder(FilterOrderRequest filterErpOrderRequest,
public BaseResponse filterThirdOrder(FilterThrOrderRequest filterErpOrderRequest,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {

@ -162,7 +162,7 @@ public class ThrOrderExportLogController {
//第三方业务单据接口下载(第三方使用)
@GetMapping("/udiwms/thrsys/thrOrder/download")
public BaseResponse downloadThrOrders(FilterOrderRequest filterErpOrderRequest,
public BaseResponse downloadThrOrders(FilterThrOrderRequest filterErpOrderRequest,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {

@ -5,10 +5,9 @@ import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.req.thrsys.FilterOrderRequest;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrErpOrderResponse;
import com.glxp.api.res.thrsys.ThrOrderResponse;
import com.glxp.api.service.thrsys.ThrSystemService;
import lombok.extern.slf4j.Slf4j;
@ -45,7 +44,7 @@ public class ErpOrderClient {
return erpOrderEntities;
}
public BaseResponse<PageSimpleResponse<ThrOrderResponse>> getThrOrderResponse(FilterOrderRequest filterOrderRequest) {
public BaseResponse<PageSimpleResponse<ThrOrderResponse>> getThrOrderResponse(FilterThrOrderRequest filterOrderRequest) {
//查询第三方服务授权参数
ThrSystemEntity thrSystemEntity = thrSystemService.selectByThirdId("thirdId");
@ -62,7 +61,7 @@ public class ErpOrderClient {
return null;
}
public List<ThrErpOrderResponse> getErpOrder(FilterOrderRequest filterOrderRequest) {
public List<ThrErpOrderResponse> getErpOrder(FilterThrOrderRequest filterOrderRequest) {
try {
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = getThrOrderResponse(filterOrderRequest);
List<ThrOrderResponse> purchaseinResponseList = responseBaseResponse.getData().getList();

@ -0,0 +1,116 @@
package com.glxp.api.req.inout;
import com.glxp.api.util.page.ListPageRequest;
import lombok.Data;
@Data
public class FilterOrderRequest extends ListPageRequest {
/**
* ID
*/
private String id;
/**
*
*/
private String action;
/**
*
*/
private String mainAction;
/**
*
*/
private String code;
/**
*
*/
private Integer status;
/**
*
*/
private String corpOrderId;
/**
*
*/
private String startTime;
/**
*
*/
private String endTime;
/**
*
*/
private String fromCorp;
private String customerId;
/**
*
*/
private String billNo;
/**
*
*/
private String ullageSupNo;
/**
*
*/
private String originUllageSupNo;
/**
*
*/
private Integer createUser;
/**
*
*/
private Integer reviewUser;
/**
* ID
*/
private Integer userId;
private String lastUpdateTime;
/**
*
*/
private String thirdBillNo;
private String wmsUserId;
private String wmsUserName;
/**
*
*/
private String fromDeptCode;
/**
*
*/
private String fromInvCode;
/**
*
*/
private String deptCode;
/**
*
*/
private String invCode;
}

@ -1,36 +0,0 @@
package com.glxp.api.req.thrsys;
import lombok.Data;
@Data
public class FilterOrderRequest {
private Integer id;
private String startDate; //起始日期
private String endDate; //结束日期
private String billNo; //单据号
private String billFlag; //单据状态,0.未签字1.已签字
private String billAction;
private String corpName;
private Integer limit;
private Integer page;
private String originType;
private String customerId;
private String status;
private Boolean isDownThrSys;
private Boolean isLocal;
private String localAction;
private String locStorageCode;
private String invWarehouseCode;
//第三方系统ID
private String thirdSys;
private Integer editStatus;
private String action;
private String thirdAction;
private String thirdOrderFk;
private Integer type;
private Integer allocateStatus;
}

@ -21,12 +21,17 @@ public class FilterThrOrderRequest extends ListPageRequest {
private String unitIdFk;
private String originType;
private String status;
private String customerId;
private Boolean isDownThrSys;
private Boolean isLocal;
private String thirdSys;
private Integer editStatus;
private String lastUpdateTime;
private Integer thirdPartyDate;
private Integer type;
private String action;
private String thirdAction;
private String thirdOrderFk;
private Integer allocateStatus;
private List<ThrOrderResponse> erpOrderResponses;
}

@ -13,4 +13,9 @@ public class CandidateRequest {
*/
String mainAction;
/**
*
*/
private String curAction;
}

@ -166,7 +166,7 @@ public class BasicBussinessTypeServiceImpl implements IBasicBussinessTypeService
@Override
public boolean checkBusTypeNameExists(String name, Integer id) {
List<BasicBussinessTypeEntity> list = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>().select("name", "id").eq("name", name).eq(null != id, "id", id));
List<BasicBussinessTypeEntity> list = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>().select("name", "id").eq("name", name));
if (CollUtil.isEmpty(list)) {
return false;
} else {

@ -10,7 +10,10 @@ import com.glxp.api.entity.system.SyncDataSetEntity;
import com.glxp.api.entity.thrsys.*;
import com.glxp.api.http.ErpOrderClient;
import com.glxp.api.http.HttpOkClient;
import com.glxp.api.req.thrsys.*;
import com.glxp.api.req.thrsys.FilterThrOrderDetailRequest;
import com.glxp.api.req.thrsys.FilterThrOrderRequest;
import com.glxp.api.req.thrsys.PostThrOrderRequest;
import com.glxp.api.req.thrsys.ThrOrderExportRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.thrsys.ThrOrderResponse;
import com.glxp.api.service.system.SyncDataSetService;
@ -498,7 +501,7 @@ public class ThrOrdersDlService {
filterThrOrderRequest.setPage(page);
filterThrOrderRequest.setLimit(limit);
filterThrOrderRequest.setBillAction(action);
FilterOrderRequest filterOrderRequest = new FilterOrderRequest();
FilterThrOrderRequest filterOrderRequest = new FilterThrOrderRequest();
BeanUtils.copyProperties(filterThrOrderRequest, filterOrderRequest);
BaseResponse<PageSimpleResponse<ThrOrderResponse>> responseBaseResponse = erpOrderClient.getThrOrderResponse(filterOrderRequest);
if (responseBaseResponse != null && responseBaseResponse.getCode() == 20000) {
@ -617,7 +620,7 @@ public class ThrOrdersDlService {
public List<ThrOrderResponse> getThrOrders(int page, int limit, String orderQueryUrl, FilterThrOrderRequest
filterThrOrderRequest) {
FilterOrderRequest filterOrderRequest = new FilterOrderRequest();
FilterThrOrderRequest filterOrderRequest = new FilterThrOrderRequest();
BeanUtils.copyProperties(filterThrOrderRequest, filterOrderRequest);
filterOrderRequest.setPage(page);
filterOrderRequest.setLimit(limit);

@ -6,7 +6,7 @@
<select id="listAdminPage" parameterType="com.glxp.api.req.auth.FilterAuthUserRequest"
resultType="com.glxp.api.entity.auth.AuthAdmin">
SELECT auth_user.*,auth_dept.name deptName
FROM auth_user left join auth_dept on auth_user.dept = auth_dept.code
FROM auth_user left join auth_dept on auth_user.locDeptCode = auth_dept.code
<where>
<if test="ids != null and ids.size > 0">
AND id IN

Loading…
Cancel
Save