修改盘点审核
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user