| | |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 物料档案 |
| | | */ |
| | | @Component |
| | | public class ERPItemScheduler { |
| | | @Value("${erp.enabled}") |
| | |
| | | // List<ItemTB> itemTBS = erpSqlServer.select(selectALL, ItemTB.class); |
| | | // List<ItemTB> itemTBS = erpSqlServer.selectAll(ItemTB.class); |
| | | |
| | | String sqlItemTB = "select * from erp_ItemTB where LKName='中扬'"; |
| | | String sqlItemTB = "select * from erp_ItemTB where LKName='中扬二期'"; |
| | | List<ItemTB> itemTBS = erpSqlServer.select(sqlItemTB, ItemTB.class); |
| | | if (itemTBS != null && itemTBS.size() > 0) { |
| | | for (ItemTB itemTB : itemTBS) { |
| | |
| | | // BeanUtils.copyProperties(itemTB, itemTBBak); |
| | | // itemTBBak.setDelDate(new Date()); |
| | | // erpItemTBBakMapper.insert(itemTBBak); |
| | | erpSqlServer.update("delete from erp_ItemTB where LKName='中扬' and ItemId = '" + itemTB.getItemId() + "'"); |
| | | erpSqlServer.update("delete from erp_ItemTB where LKName='中扬二期' and ItemId = '" + itemTB.getItemId() + "'"); |
| | | // erpItemTBMapper.delete(new EntityWrapper<ItemTB>() |
| | | // .eq("ItemId",itemTB.getItemID())); |
| | | } |