新购绑定
This commit is contained in:
parent
ea70eca3a4
commit
b85fd88d32
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue