|
|
|
@ -14,6 +14,7 @@ import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.req.basic.FilterBusTypeChangeRequest;
|
|
|
|
|
import com.glxp.api.req.basic.FilterBusTypePreRequest;
|
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
|
import com.glxp.api.res.basic.BasicBusTypePreResponse;
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
|
import com.glxp.api.service.basic.IBasicBusTypePreService;
|
|
|
|
|
import com.glxp.api.service.basic.IBasicBussinessTypeService;
|
|
|
|
@ -28,7 +29,7 @@ import javax.annotation.Resource;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 补单设置接口
|
|
|
|
|
* 单据流转接口
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@RestController
|
|
|
|
@ -42,7 +43,7 @@ public class BasicBusTypePreController {
|
|
|
|
|
private InvWarehouseService invWarehouseService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 补单设置查询
|
|
|
|
|
* 单据流转查询
|
|
|
|
|
*
|
|
|
|
|
* @param filterBusTypePreRequest
|
|
|
|
|
* @return
|
|
|
|
@ -53,7 +54,7 @@ public class BasicBusTypePreController {
|
|
|
|
|
BasicBussinessTypeEntity basicBussinessType = basicBussinessTypeService.findByAction(filterBusTypePreRequest.getAction());
|
|
|
|
|
List<BasicBusTypePreEntity> basicBusTypePreEntities = basicBusTypePreService.findByAction(filterBusTypePreRequest.getAction());
|
|
|
|
|
if (CollUtil.isEmpty(basicBusTypePreEntities)) {
|
|
|
|
|
//创建对应补单设置
|
|
|
|
|
//创建对应单据流转
|
|
|
|
|
if (filterBusTypePreRequest.getType() != null && "changEnable".equals(filterBusTypePreRequest.getType())) {
|
|
|
|
|
if (ConstantType.TYPE_OUT.equals(basicBussinessType.getMainAction()) && !basicBussinessType.isAdvanceType()) {
|
|
|
|
|
BasicBusTypePreEntity basicBusTypePreEntity = new BasicBusTypePreEntity();
|
|
|
|
@ -77,7 +78,7 @@ public class BasicBusTypePreController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 补单设置实体数据查询接口
|
|
|
|
|
* 单据流转实体数据查询接口
|
|
|
|
|
*
|
|
|
|
|
* @param busTypeChangeFilterRequest
|
|
|
|
|
* @param bindingResult
|
|
|
|
@ -93,6 +94,23 @@ public class BasicBusTypePreController {
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询单据流转列表数据
|
|
|
|
|
*
|
|
|
|
|
* @param filterBusTypePreRequest
|
|
|
|
|
* @param bindingResult
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/spms/busTypePre/filterBusTypePreRes")
|
|
|
|
|
public BaseResponse filterBusTypePreResList(FilterBusTypePreRequest filterBusTypePreRequest, BindingResult bindingResult) {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
List<BasicBusTypePreResponse> list = basicBusTypePreService.filterBusTypePreResList(filterBusTypePreRequest);
|
|
|
|
|
PageInfo<BasicBusTypePreResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据补单单据类型编码或ID删除补单单据类型
|
|
|
|
|
*
|
|
|
|
|