新购绑定

This commit is contained in:
mashuai 2024-10-23 14:45:52 +08:00
parent ea70eca3a4
commit b85fd88d32
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import com.google.zxing.WriterException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
@ -186,6 +187,7 @@ public class PurchaseBindServiceImpl implements IPurchaseBindService {
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public AjaxResult bind(PurchaseDto dto) {
//先查询提交的编码中是否存在重复提交
long distinctCodes = dto.getDtoList().stream().map(PurchaseDto::getMaCode).distinct().count();