mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
生产单管理更新还原等接口
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ public class RemainPlateSaveReqVO {
|
||||
@Schema(description = "备注", example = "随便")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "轮廊数据,Json 串")
|
||||
@Schema(description = "轮廊数据,Json 串", requiredMode = Schema.RequiredMode.REQUIRED, example = "18318")
|
||||
private String outLineJson;
|
||||
|
||||
}
|
||||
+7
-4
@@ -17,8 +17,7 @@ import com.cf.imes.framework.common.util.object.BeanUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import static com.cf.imes.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.cf.imes.module.system.enums.ErrorCodeConstants.*;
|
||||
@@ -46,8 +45,12 @@ public class RemainPlateServiceImpl implements RemainPlateService {
|
||||
|
||||
@Override
|
||||
public Boolean createRemainPlateMultiple(Set<RemainPlateSaveReqVO> createReqVOS) {
|
||||
// 批量插入
|
||||
return remainPlateMapper.insertBatch(Collections.singleton(BeanUtils.toBean(createReqVOS, RemainPlateDO.class)));
|
||||
Collection<RemainPlateDO> remainPlates = new ArrayList<>();
|
||||
createReqVOS.forEach(createReqVO -> {
|
||||
RemainPlateDO remainPlate = BeanUtils.toBean(createReqVO, RemainPlateDO.class);
|
||||
remainPlates.add(remainPlate);
|
||||
});
|
||||
return remainPlateMapper.insertBatch(remainPlates);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user