bug修复

This commit is contained in:
guoshengxiong 2024-05-20 16:04:50 +08:00
parent a19da3d721
commit 8f592a1a76
3 changed files with 15 additions and 12 deletions

View File

@ -214,7 +214,7 @@ public class QueryGenerator {
if (parameterMap != null && parameterMap.containsKey(ORDER_TYPE)) {
order = parameterMap.get(ORDER_TYPE)[0];
}
log.info("排序规则>>列:" + column + ",排序方式:" + order);
//log.info("排序规则>>列:" + column + ",排序方式:" + order);
if (oConvertUtils.isNotEmpty(column) && oConvertUtils.isNotEmpty(order)) {
String c = oConvertUtils.camelToUnderline(column);
String aliasField = alias != null ? alias + c : c;
@ -421,7 +421,7 @@ public class QueryGenerator {
long start = System.currentTimeMillis();
QueryWrapper<T> queryWrapper = new QueryWrapper<T>();
installMplus(queryWrapper, JSONObject.parseObject(JSONObject.toJSONString(map), clz), initParamMap(map), excludeFields, likeFields, defaultAlias);
log.info("---查询条件构造器初始化完成,耗时:" + (System.currentTimeMillis() - start) + "毫秒----");
//log.info("---查询条件构造器初始化完成,耗时:" + (System.currentTimeMillis() - start) + "毫秒----");
return queryWrapper;
}
@ -609,7 +609,7 @@ public class QueryGenerator {
return;
}
name = oConvertUtils.camelToUnderline(name);
log.info("--查询规则-->" + name + " " + rule.getValue() + " " + value);
//log.info("--查询规则-->" + name + " " + rule.getValue() + " " + value);
if (org.apache.commons.lang3.StringUtils.isNotBlank(alias)) {
name = alias + name;
}

View File

@ -7,6 +7,7 @@ import org.springframework.context.annotation.Primary;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.security.core.context.SecurityContextHolder;
import javax.annotation.PostConstruct;
import java.util.concurrent.ThreadPoolExecutor;
/**
@ -30,9 +31,9 @@ public class AsyncConfig {
*/
private int queueCapacity = 200;
@Bean
public InitializingBean initializingBean() {
return () -> SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL);
@PostConstruct
public void init() {
SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL);
}
/**

View File

@ -123,6 +123,7 @@ public class XzEmergencyRecordServiceImpl extends ServiceImpl<XzEmergencyRecordM
baseMapper.updateById(xzEmergencyRecord);
xzEmergencyRescueSituationMapper.delete(new LambdaQueryWrapper<XzEmergencyRescueSituation>()
.eq(XzEmergencyRescueSituation::getXzEmergencyRecordId, xzEmergencyRecord.getId()));
if (xzEmergencyRecord.getSituations() != null) {
for (XzEmergencyRescueSituation situation : xzEmergencyRecord.getSituations()) {
situation.setId(null);
situation.setXzEmergencyRecordId(xzEmergencyRecord.getId());
@ -131,6 +132,7 @@ public class XzEmergencyRecordServiceImpl extends ServiceImpl<XzEmergencyRecordM
xzEmergencyRescueSituationMapper.insert(situation);
}
}
}
@Override
public void delete(String id) {