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