fix:关闭推中鼎事务

This commit is contained in:
zhaoyf
2026-11-06 09:44:45 +08:00
parent 7563288c8d
commit 714bb950c1
2 changed files with 1 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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("下推失败,请求数据不能为空");