修改盘点审核

This commit is contained in:
liuhanqing
2025-11-05 09:56:38 +08:00
parent fec6b4fd8a
commit 45eb21cf0e
2 changed files with 51 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
@@ -127,6 +128,7 @@ public class CheckDifferenceRecordController extends BaseController {
@PreAuthorize("@ss.hasPermi('check:difference:audit')")
@Log(title = "盘点差异", businessType = BusinessType.UPDATE)
@PutMapping("/audit")
@Transactional(rollbackFor = Exception.class)
public AjaxResult audit(@RequestBody String[] checkGuids) {
List<CheckDifferenceRecord> records = new ArrayList<>();
for (String checkGuid : checkGuids) {
@@ -214,6 +216,8 @@ public class CheckDifferenceRecordController extends BaseController {
newStock.setSpare8(checkDifferenceRecordAddInfo.getSpare14());
// 最后设置库存ID
newStock.setStockId(basJobIdService.getJobId("KC"));
newStock.setSpare7("1");
newStock.setStackingId(DateUtil.formatDateTime(DateUtil.date()));
basStockService.insertBasStock(newStock);