|
|
|
@ -31,6 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@ -100,6 +101,13 @@ public class InvSubWarehouseController {
|
|
|
|
|
} else {
|
|
|
|
|
invSubWarehouseEntity.setCode(Integer.parseInt(codeEntity.getCode()) + 1 + "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InvWarehouseEntity updateEntity = new InvWarehouseEntity();
|
|
|
|
|
updateEntity.setId(pEntity.getId());
|
|
|
|
|
updateEntity.setUpdateTime(new Date());
|
|
|
|
|
invWarehouseService.updateInvWarehouse(updateEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
invSubWarehouseEntity.setId(IdUtil.getSnowflake(6, 1).nextId() + "");
|
|
|
|
|
boolean b = invSubWarehouseService.insertInvSubWarehouse(invSubWarehouseEntity);
|
|
|
|
|
if (!b) {
|
|
|
|
|