parent
54679ad44d
commit
da807b127d
|
@ -42,6 +42,7 @@ import org.springframework.http.MediaType;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||||
|
@ -2301,6 +2302,10 @@ public class WmImNoticeHController extends BaseController {
|
||||||
.getWmImNoticeIList();
|
.getWmImNoticeIList();
|
||||||
AjaxJson j = new AjaxJson();
|
AjaxJson j = new AjaxJson();
|
||||||
String message = "进货通知添加成功";
|
String message = "进货通知添加成功";
|
||||||
|
if(CollectionUtils.isEmpty(wmImNoticeIList)){
|
||||||
|
message = "进货通知明细不能为空";
|
||||||
|
throw new BusinessException(message);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
String noticeid = wmUtil.getNextNoticeid(wmImNoticeH.getOrderTypeCode()) ;
|
String noticeid = wmUtil.getNextNoticeid(wmImNoticeH.getOrderTypeCode()) ;
|
||||||
|
|
|
@ -936,6 +936,10 @@ public class WmOmNoticeHController extends BaseController {
|
||||||
List<WmOmNoticeIEntity> wmOmNoticeIList = wmOmNoticeHPage.getWmOmNoticeIList();
|
List<WmOmNoticeIEntity> wmOmNoticeIList = wmOmNoticeHPage.getWmOmNoticeIList();
|
||||||
AjaxJson j = new AjaxJson();
|
AjaxJson j = new AjaxJson();
|
||||||
String message = "添加成功";
|
String message = "添加成功";
|
||||||
|
if(org.springframework.util.CollectionUtils.isEmpty(wmOmNoticeIList)){
|
||||||
|
message = "出货通知明细不能为空";
|
||||||
|
throw new BusinessException(message);
|
||||||
|
}
|
||||||
try{
|
try{
|
||||||
String noticeid = wmUtil.getNextomNoticeId(wmOmNoticeH.getOrderTypeCode());
|
String noticeid = wmUtil.getNextomNoticeId(wmOmNoticeH.getOrderTypeCode());
|
||||||
WmPlatIoEntity wmPlatIo = new WmPlatIoEntity();
|
WmPlatIoEntity wmPlatIo = new WmPlatIoEntity();
|
||||||
|
|
Loading…
Reference in New Issue