Merge remote-tracking branch 'origin/master'

master
郑明梁 2 years ago
commit 70318b9994

@ -137,7 +137,7 @@ public class BasicBussinessTypeController {
* @param files * @param files
* @return * @return
*/ */
@PostMapping("/udiwms/busstiness/file/upload") @PostMapping("/udiwms/bussinessType/file/upload")
public BaseResponse uploadProducts(@RequestParam("file") List<MultipartFile> files) { public BaseResponse uploadProducts(@RequestParam("file") List<MultipartFile> files) {
for (int i = 0; i < files.size(); i++) { for (int i = 0; i < files.size(); i++) {
MultipartFile file = files.get(i); MultipartFile file = files.get(i);
@ -166,7 +166,7 @@ public class BasicBussinessTypeController {
* *
* @param res * @param res
*/ */
@PostMapping("udiwms/busstiness/file/export") @PostMapping("udiwms/bussinessType/file/export")
public void exportXml(HttpServletResponse res) { public void exportXml(HttpServletResponse res) {
FilterBussinessTypeRequest bussinessTypeFilterRequest = new FilterBussinessTypeRequest(); FilterBussinessTypeRequest bussinessTypeFilterRequest = new FilterBussinessTypeRequest();
bussinessTypeFilterRequest.setEnable(true); bussinessTypeFilterRequest.setEnable(true);
@ -193,14 +193,14 @@ public class BasicBussinessTypeController {
* *
* @return * @return
*/ */
@GetMapping("/warehouse/bussinessType/candidateBussinessType") @GetMapping("/udiwms/bussinessType/candidateBusType")
public BaseResponse candidateBussinessType(CandidateRequest cndidateRequest) { public BaseResponse candidateBussinessType(CandidateRequest candidateRequest) {
if (StrUtil.isBlank(cndidateRequest.getMainAction())) { if (StrUtil.isBlank(candidateRequest.getMainAction())) {
return ResultVOUtils.error(ResultEnum.DATA_ERROR); return ResultVOUtils.error(ResultEnum.DATA_ERROR);
} }
List<BasicBussinessTypeEntity> bussinessTypeEntities = basicBussinessTypeService.candidateBussinessType(cndidateRequest.getMainAction()); List<BasicBussinessTypeEntity> bussinessTypeEntities = basicBussinessTypeService.candidateBussinessType(candidateRequest.getMainAction());
if (StrUtil.isNotBlank(cndidateRequest.getCurAction())) { if (StrUtil.isNotBlank(candidateRequest.getCurAction())) {
BasicBussinessTypeEntity bussinessTypeEntity = basicBussinessTypeService.findByAction(cndidateRequest.getCurAction()); BasicBussinessTypeEntity bussinessTypeEntity = basicBussinessTypeService.findByAction(candidateRequest.getCurAction());
bussinessTypeEntities.add(bussinessTypeEntity); bussinessTypeEntities.add(bussinessTypeEntity);
} }
//查询补单单据类型 //查询补单单据类型

@ -36,7 +36,7 @@ public class BasicBussinessTypeEntity {
private String name; private String name;
/** /**
* * , 0 1
*/ */
private Boolean enable; private Boolean enable;

@ -12,7 +12,7 @@ import java.util.List;
public class FilterBussinessTypeRequest extends ListPageRequest { public class FilterBussinessTypeRequest extends ListPageRequest {
/** /**
* * , 0 1
*/ */
private Boolean enable; private Boolean enable;

@ -8,16 +8,30 @@ import lombok.Data;
@Data @Data
public class BasicBussinessTypeResponse { public class BasicBussinessTypeResponse {
/**
* ID
*/
private Integer id; private Integer id;
/**
*
*/
private String action; private String action;
/**
*
*/
private String name; private String name;
/**
*
*/
private Boolean enable; private Boolean enable;
private String remark; private String remark;
private String mainAction; private String mainAction;
private String thirdSysFk; private String thirdSysFk;
private String thirdId; private String thirdId;
private String thirdName; private String thirdName;
private Boolean enabled;
/** /**
* *

Loading…
Cancel
Save