md
This commit is contained in:
parent
af17f2a9e7
commit
99684ab180
@ -50,6 +50,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.dao.DuplicateKeyException;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
@ -374,7 +375,7 @@ public class EmisWaybillController extends EmisBaseController
|
||||
|
||||
@Log(title = "运单实时下单", businessType = BusinessType.INSERT)
|
||||
@PostMapping(value = "/realSubmitOrder")
|
||||
public AjaxResult realSubmitOrder(@Valid @RequestBody WaybillOrder waybillOrder,Integer isModify)
|
||||
public AjaxResult realSubmitOrder(@Validated @RequestBody WaybillOrder waybillOrder, Integer isModify)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ import com.xdadan.erp.emis.domain.*;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
@ -46,6 +47,7 @@ public class WaybillOrder implements Serializable {
|
||||
private String waybillStatus;
|
||||
|
||||
/* 运单号 */
|
||||
@Size(min = 0, max = 20, message = "运单号长度不能超过20个字符")
|
||||
private String billCode;
|
||||
|
||||
/* 订单号 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user