| | |
| | | import com.zy.asrs.service.MobileService; |
| | | import com.zy.asrs.service.WaitPakinService; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @RequestMapping |
| | | @RestController |
| | | public class BarcodeMatnrController extends BaseController { |
| | |
| | | } |
| | | for (MatBarcode matBarcode : list) { |
| | | if (!matBarcode.getZpallet().equals(list.get(0).getZpallet())){ |
| | | log.info(matBarcode.getZpallet()); |
| | | log.info(list.get(0).getZpallet()); |
| | | throw new CoolException("请选择相同托盘码的数据"); |
| | | } |
| | | } |
| | |
| | | @RequestMapping(value = "/barcodeMatnr/add2/auth") |
| | | @ManagerAuth |
| | | public R clamp(WaitPakin waitPakin) { |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | Mat mat = matService.selectById(waitPakin.getModiUser()); |