java.lang.IllegalArgumentException: The given id must not be null!
严重: Servlet.service() for servlet [dispatcher] in context with path
[/sxnd-erp] threw exception
[Request processing failed;
nested exception is org.springframework.dao.InvalidDataAccessApiUsageException:
The given id must not be null!;
nested exception is java.lang.IllegalArgumentException:
The given id must not be null!]
with root cause
java.lang.IllegalArgumentException: The given id must not be null!
at org.springframework.util.Assert.notNull(Assert.java:193)
at org.springframework.data.jpa.repository.support.SimpleJpaRepository.findById(SimpleJpaRepository.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
at com.sxnd.service.ReceiptBillService.saveBill(ReceiptBillService.java:65)
at com.sxnd.service.ReceiptBillService$$FastClassBySpringCGLIB$$b3d3a1d5.invoke(<generated>)
...
at com.sxnd.service.ReceiptBillService$$EnhancerBySpringCGLIB$$b4572171.saveBill(<generated>)
...
报错:500
原因:js中的warehouseid和bean中的warehouseId没有对应上