批量转移增加创建日期

master
e 2019-01-08 09:50:02 +08:00
parent d6deeb9e2a
commit 8f825c326e
2 changed files with 5 additions and 1 deletions

View File

@ -174,7 +174,7 @@ public class WmToMoveGoodsController extends BaseController {
WmToMoveGoodsEntity wmToMoveGoods = systemService.getEntity(WmToMoveGoodsEntity.class, WmToMoveGoodsEntity wmToMoveGoods = systemService.getEntity(WmToMoveGoodsEntity.class,
id id
); );
wmToMoveGoods.setMoveSta(ResourceUtil.getConfigByName("moveStats")); wmToMoveGoods.setMoveSta("已完成");
wmToMoveGoodsService.updateEntitie(wmToMoveGoods); wmToMoveGoodsService.updateEntitie(wmToMoveGoods);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO); systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} }

View File

@ -19,6 +19,8 @@ import org.springframework.stereotype.Service;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.*; import java.util.*;
import static com.xiaoleilu.hutool.date.DateTime.now;
/** /**
* *
* @ClassName:SmsSendTask * @ClassName:SmsSendTask
@ -89,6 +91,8 @@ public class GoodsMoveTask {
WvStockEntity t = systemService.get(WvStockEntity.class,resulmovea.get(i).get("id").toString()); WvStockEntity t = systemService.get(WvStockEntity.class,resulmovea.get(i).get("id").toString());
WmToMoveGoodsEntity wmtomove = new WmToMoveGoodsEntity(); WmToMoveGoodsEntity wmtomove = new WmToMoveGoodsEntity();
wmtomove.setCreateDate(now());
wmtomove.setCreateBy("system");
wmtomove.setOrderTypeCode("TPZY"); wmtomove.setOrderTypeCode("TPZY");
wmtomove.setBinFrom(t.getKuWeiBianMa()); wmtomove.setBinFrom(t.getKuWeiBianMa());
wmtomove.setBinTo(t.getKuWeiBianMa()); wmtomove.setBinTo(t.getKuWeiBianMa());