fix:关闭推中鼎事务
This commit is contained in:
@@ -66,7 +66,7 @@ public class WmsToZDWmdServiceImpl implements WmsToZDWmdService {
|
||||
log.info("syncDemandOrder需求单下发输出参数:-------------------" + result.toString());
|
||||
Integer respCode = result.getInteger("respCode");
|
||||
if (respCode == null || respCode != 0) {
|
||||
throw new BadRequestException("中鼎库存查询失败:" + result.getString("respMsg"));
|
||||
throw new BadRequestException(result.getString("respMsg"));
|
||||
}
|
||||
return new ResponseEntity(result, HttpStatus.OK);
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -58,7 +58,6 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -372,7 +371,6 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void pushDemand(List<PmDemandDto> pmDemandDtos) {
|
||||
if (CollectionUtils.isEmpty(pmDemandDtos)) {
|
||||
throw new BadRequestException("下推失败,请求数据不能为空");
|
||||
|
||||
Reference in New Issue
Block a user