EmptyOutHandleServiceImpl.java
695 Bytes
package com.huaheng.api.wcs.service.emptyOutHandle;
import com.huaheng.api.wcs.domain.WcsTask;
import com.huaheng.common.utils.StringUtils;
import com.huaheng.framework.web.domain.AjaxResult;
import org.springframework.stereotype.Service;
@Service
public class EmptyOutHandleServiceImpl implements EmptyOutHandleService {
/**
* 空出处理
* 1、判断非空字段
* 2、
* @param wcsTask
* @return
*/
@Override
public AjaxResult EmptyOutHandle(WcsTask wcsTask) {
//1、判断非空字段
if(StringUtils.isEmpty(wcsTask.getTaskNo())){
return AjaxResult.error("任务号为空");
}
return null;
}
}