|
@@ -23,6 +23,7 @@ import com.zhongzheng.modules.top.order.mapper.TopOrderRecNoteMapper;
|
|
|
import com.zhongzheng.modules.top.order.service.ITopOrderRecNoteService;
|
|
|
import com.zhongzheng.modules.top.order.vo.TopOrderRecNoteVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -43,9 +44,14 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMapper, TopOrderRecNote> implements ITopOrderRecNoteService {
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
private ITopOldOrderService iTopOldOrderService;
|
|
|
|
|
|
+ @Value("${oldSys.host}")
|
|
|
+ private String OLD_SYS_HOST;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public TopOrderRecNoteVo queryById(Long id){
|
|
|
TopOrderRecNote db = this.baseMapper.selectById(id);
|
|
@@ -98,10 +104,11 @@ public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMappe
|
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
if(bo.getNoteType()==1){
|
|
|
- pushOldNote(bo.getOrderSn());
|
|
|
- bo.setLastTime(DateUtils.getNowTime());
|
|
|
+ this.save(add);
|
|
|
+ return pushOldNote(bo.getOrderSn());
|
|
|
+ }else{
|
|
|
+ return this.save(add);
|
|
|
}
|
|
|
- return this.save(add);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -138,7 +145,7 @@ public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMappe
|
|
|
params.put("sign", sign);
|
|
|
params.put("orderNos", orderSn);
|
|
|
String respone = "";
|
|
|
- String path = "http://gdxypx.xy.com/WitSystem/BussinessApi/PressMsg";
|
|
|
+ String path = OLD_SYS_HOST+"/WitSystem/BussinessApi/PressMsg";
|
|
|
try {
|
|
|
respone = HttpUtils.postFormBody(path, params);
|
|
|
if (!respone.contains("\"Status\":true")) {
|