|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//查询补单单据类型
|
|
|
|
//查询补单单据类型
|
|
|
|