add:日库存

This commit is contained in:
zhangzhiqiang
2023-09-22 14:09:32 +08:00
parent d55e063092
commit 85fefa35c1
7 changed files with 92 additions and 17 deletions

View File

@@ -13,10 +13,7 @@ import org.nl.wms.masterdata_manage.storage.service.storage.dto.SectattrQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
* <p>
@@ -40,12 +37,19 @@ public class StIvtStructivtDailyController {
public ResponseEntity<Object> query(DailyStructivtQuery query, PageQuery page){
return new ResponseEntity<>(TableDataInfo.build(stIvtStructivtDailyService.page(page.build(),query.build())),HttpStatus.OK);
}
@GetMapping("/sync")
@PostMapping("/sync")
@Log("同步日库区")
@SaIgnore
public ResponseEntity<Object> sync(String[] structivts){
public ResponseEntity<Object> sync(@RequestBody String[] structivts){
stIvtStructivtDailyService.dailyStructivt(structivts);
return new ResponseEntity<>(HttpStatus.OK);
}
// @GetMapping("/download")
// @Log("导出数据")
// @SaIgnore
// public ResponseEntity<Object> download(){
// return new ResponseEntity<>(HttpStatus.OK);
// }
}

View File

@@ -37,7 +37,7 @@ public class StIvtStructivtDailyServiceImpl extends ServiceImpl<StIvtStructivtDa
@Override
@Transactional
public void dailyStructivt(String... structivts) {
if (structivts.length == 0){
if (structivts==null || structivts.length == 0){
return;
}
ArrayList<StIvtStructivtDaily> list = new ArrayList<>();