This commit is contained in:
parent
bd823356bc
commit
5b2c056697
|
|
@ -129,10 +129,10 @@ public class PartBackServiceImpl implements PartBackService {
|
|||
vo.setCreateId(userId.toString());
|
||||
vo.setUpdater(userId.toString());
|
||||
// 使用Stream API对quantity属性求和
|
||||
int backNum = list.stream()
|
||||
int allNum = list.stream()
|
||||
.mapToInt(PartBackDetailsVo::getBackNum)
|
||||
.sum();
|
||||
vo.setBackNum(backNum);
|
||||
vo.setBackNum(allNum);
|
||||
int num=mapper.insertBack(vo);
|
||||
if(num>0){
|
||||
List<FileUploadVo> fileList=uploadService.uploadImage(files,vo.getId(),"t_part_back","退料附件");
|
||||
|
|
|
|||
Loading…
Reference in New Issue