|
|
|
@ -10,6 +10,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
|
|
|
import org.apache.commons.lang.math.RandomUtils; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
@ -137,16 +138,17 @@ public class GoodsController extends BladeController { |
|
|
|
} |
|
|
|
} |
|
|
|
// goods.setDeactivate(1);
|
|
|
|
// goods.setDeactivate(1);
|
|
|
|
// 物品详情入库
|
|
|
|
// 物品详情入库
|
|
|
|
ProductStoreDetial productStoreDetial = new ProductStoreDetial(); |
|
|
|
goods.setId(RandomUtils.nextLong()); |
|
|
|
productStoreDetial.setGoodsId(goods.getId()); |
|
|
|
// ProductStoreDetial productStoreDetial = new ProductStoreDetial();
|
|
|
|
productStoreDetial.setGoodsName(goods.getName()); |
|
|
|
// productStoreDetial.setGoodsId(goods.getId());
|
|
|
|
productStoreDetial.setPNum(1); |
|
|
|
// productStoreDetial.setGoodsName(goods.getName());
|
|
|
|
productStoreDetial.setNum(goods.getNum()); |
|
|
|
// productStoreDetial.setPNum(1);
|
|
|
|
productStoreDetial.setBeyondTime(new Date()); |
|
|
|
// productStoreDetial.setNum(goods.getNum());
|
|
|
|
productStoreDetial.setCompany(goods.getCompany()); |
|
|
|
// productStoreDetial.setBeyondTime(new Date());
|
|
|
|
productStoreDetial.setLocation(goods.getLocation()); |
|
|
|
// productStoreDetial.setCompany(goods.getCompany());
|
|
|
|
productStoreDetial.setStatus(0); |
|
|
|
// productStoreDetial.setLocation(goods.getLocation());
|
|
|
|
productStoreDetialService.save(productStoreDetial); |
|
|
|
// productStoreDetial.setStatus(0);
|
|
|
|
|
|
|
|
// productStoreDetialService.save(productStoreDetial);
|
|
|
|
if (goods.getBigClassId() != null) { |
|
|
|
if (goods.getBigClassId() != null) { |
|
|
|
ProductClass productClass = productClassService.getById(goods.getBigClassId()); |
|
|
|
ProductClass productClass = productClassService.getById(goods.getBigClassId()); |
|
|
|
goods.setBigClass(productClass.getName()); |
|
|
|
goods.setBigClass(productClass.getName()); |
|
|
|
|