Commit 9d4919cc authored by chicheng's avatar chicheng

工序完工后端接口添加

parent fa4ec878
package com.topsunit.scanservice.ximai.controller; package com.topsunit.scanservice.ximai.controller;
import com.topsunit.scanservice.ximai.dto.*; import com.topsunit.scanservice.ximai.dto.*;
import com.topsunit.scanservice.ximai.service.SfctbService; import com.topsunit.scanservice.ximai.service.SfctbService;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
/** /**
* <p>Title: SfctbController</p> * <p>Title: SfctbController</p>
* <p>Description: 转移单 Controller</p> * <p>Description: 转移单 Controller</p>
* *
* @author xi.feng * @author xi.feng
* @version V1.0 * @version V1.0
* @date 2021/10/28 * @date 2021/10/28
*/ */
@RestController @RestController
public class SfctbController { public class SfctbController {
private final SfctbService sfctbService; private final SfctbService sfctbService;
public SfctbController(@RequestBody SfctbService sfctbService) { public SfctbController(@RequestBody SfctbService sfctbService) {
this.sfctbService = sfctbService; this.sfctbService = sfctbService;
} }
@ApiOperation("转移单创建") @ApiOperation("转移单创建")
@PostMapping("/sfctb/createfortransfer") @PostMapping("/sfctb/createfortransfer")
public void createForTransfer(@RequestBody SfctbCreateParams params) { public void createForTransfer(@RequestBody SfctbCreateParams params) {
sfctbService.createForTransfer(params); sfctbService.createForTransfer(params);
} }
@ApiOperation("入库单创建")
@PostMapping("/sfctb/createforstorage") @ApiOperation("工序完工")
public void createForStorage(@RequestBody SfctbCreateParams params) { @PostMapping("/sfctb/processTransfer")
sfctbService.createForStorage(params); public void processTransfer(@RequestBody SfctbProcessParams params) {
} sfctbService.processTransfer(params);
}
@ApiOperation("转移单检验")
@PostMapping("/sfctb/getfortransfercheck") @ApiOperation("入库单创建")
public List<SfctcDto> getForTransferCheck(@RequestBody SfctcTransferCheckCriteria criteria) { @PostMapping("/sfctb/createforstorage")
return sfctbService.getForTransferCheck(criteria); public void createForStorage(@RequestBody SfctbCreateParams params) {
} sfctbService.createForStorage(params);
}
@ApiOperation("入库单检验")
@PostMapping("/sfctb/getforstoragecheck") @ApiOperation("转移单检验")
public List<SfctcDto> getForStorageCheck(@RequestBody SfctcStorageCheckCriteria criteria) { @PostMapping("/sfctb/getfortransfercheck")
return sfctbService.getForStorageCheck(criteria); public List<SfctcDto> getForTransferCheck(@RequestBody SfctcTransferCheckCriteria criteria) {
} return sfctbService.getForTransferCheck(criteria);
@ApiOperation("转移单检验确认") }
@PostMapping("/sfctb/check")
public void check(@RequestBody SfctcCheckParams params) { @ApiOperation("入库单检验")
sfctbService.check(params); @PostMapping("/sfctb/getforstoragecheck")
} public List<SfctcDto> getForStorageCheck(@RequestBody SfctcStorageCheckCriteria criteria) {
} return sfctbService.getForStorageCheck(criteria);
}
@ApiOperation("转移单检验确认")
@PostMapping("/sfctb/check")
public void check(@RequestBody SfctcCheckParams params) {
sfctbService.check(params);
}
}
package com.topsunit.scanservice.ximai.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
/**
* <p>Title: SfctbTranCreateParams</p>
* <p>Description: 录入转移单参数</p>
*
* @author xi.feng
* @version V1.0
* @date 2021/10/28
*/
@Data
public class SfctbProcessParams {
@ApiModelProperty("转移单别")
private String tb001="D20";
@ApiModelProperty("移出地")
private String tb005;
@ApiModelProperty("移出地名称")
private String tb006;
@ApiModelProperty("移入地")
private String tb008;
@ApiModelProperty("移入地名称")
private String tb009;
@ApiModelProperty("工单单别")
private String tc004;
@ApiModelProperty("工单单号")
private String tc005;
@ApiModelProperty("称出加工顺序")
private String tc006;
@ApiModelProperty("称出加工顺序名称")
private String tc007;
@ApiModelProperty("移入加工顺序")
private String tc008;
@ApiModelProperty("移入加工顺序名称")
private String tc009;
@ApiModelProperty("类型")
private String tc013;
@ApiModelProperty("使用人时")
private Integer tc020;
@ApiModelProperty("使用机时")
private Integer tc021;
@ApiModelProperty("批号")
private String tc032;
@ApiModelProperty("转移数量")
private BigDecimal tc036;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment