Merge branch 'dev' of http://192.168.0.56:3000/bonus/devicesmgt into dev
This commit is contained in:
commit
7a8b15a320
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.sgzb.app.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.bonus.sgzb.app.domain.LeaseApplyDetails;
|
||||
import com.bonus.sgzb.app.domain.TmTask;
|
||||
import com.bonus.sgzb.app.service.LeaseOutDetailsService;
|
||||
|
|
@ -140,8 +141,12 @@ public class LeaseOutDetailsController extends BaseController {
|
|||
@Log(title = "领料出库", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/submitOutRfid")
|
||||
public AjaxResult submitOutRfid(@RequestBody List<LeaseOutDetails> recordList) {
|
||||
if (CollUtil.isEmpty(recordList)){
|
||||
return AjaxResult.error("请选择要出库的机具");
|
||||
}else {
|
||||
return leaseOutDetailsService.submitOutRfid(recordList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
|||
while (codeList.size() < dto.getNum()) {
|
||||
String code = FieldGenerator.generateField();
|
||||
int count = selectByCode(code);
|
||||
if (count == 0) {
|
||||
if (count == 0 && !codeList.contains(code)) {
|
||||
codeList.add(code);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue