Commit 74106a68 by lilei

解决在提取时调用三次思悦数据检查

parent e8888158
......@@ -6,6 +6,8 @@ import com.baomidou.dynamic.datasource.annotation.DS;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.founder.asj.entity.StAsj;
import org.springblade.founder.asj.entity.TbStAsj;
import org.springblade.founder.asj.mapper.AjDetailMapper;
import org.springblade.founder.ba.entity.XwBa;
import org.springblade.founder.ba.service.ITbXwBaService;
import org.springblade.founder.glasjry.service.ITbGlAsjRyService;
......@@ -36,6 +38,8 @@ public class StAsjXxtqService {
private IXwRybhService xwRybhService;
@Autowired
private ITbGlAsjRyService glAsjRyService;
@Autowired
private AjDetailMapper ajDetailMapper;
@DS("xzxt_qgjck")
......@@ -186,10 +190,12 @@ public class StAsjXxtqService {
query.setXxscPdbz("0");
StAsj data = stAsjService.getOne(Condition.getQueryWrapper(query));
String token = getToken();
getSysjjcUrl(asjbh,token);
TbStAsj tbStAsjByAsjbh = ajDetailMapper.getTbStAsjByAsjbh(asjbh);
if (tbStAsjByAsjbh==null){
getSysjjcUrl(asjbh,token);
}
if(data!=null){
data.setXxlyms("信息来源于案件提取");
//检验案发时间
Date afkssj = data.getAsjfssjAsjfskssj();
if(afkssj==null){
......@@ -214,7 +220,10 @@ public class StAsjXxtqService {
List<XwZbfzxyr> finalData = new ArrayList<>();
String errorMsg = "";
String token = getToken();
getSysjjcUrl(asjbh,token);
TbStAsj tbStAsjByAsjbh = ajDetailMapper.getTbStAsjByAsjbh(asjbh);
if (tbStAsjByAsjbh!=null){
getSysjjcUrl(asjbh,token);
}
if(data!=null && !data.isEmpty()){
StAsj queryAsj = new StAsj();
queryAsj.setAsjbh(query.getAsjbh());
......@@ -298,7 +307,10 @@ public class StAsjXxtqService {
List<XwRybh> finalData = new ArrayList<>();
String errorMsg = "";
String token = getToken();
getSysjjcUrl(asjbh,token);
TbStAsj tbStAsjByAsjbh = ajDetailMapper.getTbStAsjByAsjbh(asjbh);
if (tbStAsjByAsjbh!=null){
getSysjjcUrl(asjbh,token);
}
if(data!=null && !data.isEmpty()){
StAsj queryAsj = new StAsj();
queryAsj.setAsjbh(query.getAsjbh());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment