| | |
| | | import com.consum.base.pojo.response.FormInventoryGoodsVO; |
| | | import com.consum.base.pojo.response.FormInventoryVO; |
| | | import com.consum.base.service.FinSysTenantUserServiceImpl; |
| | | import com.consum.base.service.LWhFormInventoryGoodsServiceImpl; |
| | | import com.consum.base.service.LWhFormInventoryCoreService; |
| | | import com.consum.base.service.LWhFormInventoryServiceImpl; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.consum.model.po.LWhFormInventory; |
| | | import com.iplatform.model.po.S_user_core; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | private FinSysTenantUserServiceImpl finSysTenantUserService; |
| | | @Autowired |
| | | private LWhFormInventoryGoodsServiceImpl inventoryGoodsService; |
| | | private LWhFormInventoryCoreService lWhFormInventoryCoreService; |
| | | |
| | | |
| | | /** |
| | | * @Description 新增 |
| | |
| | | } |
| | | |
| | | int num = this.lWhFormInventoryService.updateInventoryInfo(dto, 2); |
| | | return num > 0 ? ResponseValue.success(1) : ResponseValue.error("盘点失败!"); |
| | | |
| | | S_user_core currentUser = this.getCurrentUser(); |
| | | FinSysTenantUser sysInfo = this.getSysInfo(); |
| | | |
| | | String inOutFormByInventoryId = lWhFormInventoryCoreService.createInOutFormByInventoryId(dto.getId(), currentUser, sysInfo); |
| | | return num > 0 ? ResponseValue.success(1) : ResponseValue.error(inOutFormByInventoryId); |
| | | } |
| | | |
| | | /** |