parent
0a91a2028e
commit
37bc38615b
@ -0,0 +1,36 @@
|
||||
package com.hw.mes.controller;
|
||||
|
||||
import com.hw.common.core.web.controller.BaseController;
|
||||
import com.hw.common.core.web.domain.AjaxResult;
|
||||
import com.hw.common.log.annotation.Log;
|
||||
import com.hw.common.log.enums.BusinessType;
|
||||
import com.hw.mes.domain.vo.*;
|
||||
import com.hw.mes.service.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* MES手持端接口Controller
|
||||
*
|
||||
* @author xins
|
||||
* @date 2024-04-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mobile")
|
||||
public class MesMobileController extends BaseController {
|
||||
@Autowired
|
||||
private IMesBasePalletInfoService mesBasePalletInfoService;
|
||||
|
||||
|
||||
/**
|
||||
* 物料条码和托盘码绑定
|
||||
*/
|
||||
@Log(title = "托盘信息", businessType = BusinessType.BIND)
|
||||
@PostMapping(("/bindPalletInfo"))
|
||||
public AjaxResult bindPalletInfo(@Validated @RequestBody MesPalletInfoBindVo mesPalletInfoBindVo) {
|
||||
return success(mesBasePalletInfoService.bindPalletInfo(mesPalletInfoBindVo));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.hw.mes.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Description: 托盘与物料绑定VO对象
|
||||
* @ClassName: MesPalletInfoBindVo
|
||||
* @Author : xins
|
||||
* @Date :2024-04-15 13:42
|
||||
* @Version :1.0
|
||||
*/
|
||||
@Data
|
||||
public class MesPalletInfoBindVo {
|
||||
//物料条码
|
||||
@NotBlank(message = "物料条码必须输入")
|
||||
private String materialBarcode;
|
||||
|
||||
//托盘码
|
||||
@NotBlank(message = "托盘码必须输入")
|
||||
private String palletInfoCode;
|
||||
|
||||
}
|
Loading…
Reference in New Issue