This commit is contained in:
pengjie 2023-12-05 17:47:48 +08:00
parent 96f288cd0e
commit a432696105
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ public class AsyncEmail {
@Async("taskExecutor")
public void sendEmail(String sn, String receiveUser, String title, String content) {
GovernmentConfig governmentConfig = governmentConfigService.getOne(Wrappers.<GovernmentConfig>lambdaQuery().eq(GovernmentConfig::getGovernmentSn, sn)
.eq(GovernmentConfig::getKey, ParamEnum.GovernmentConfig.EMAIL.getValue()));
.eq(GovernmentConfig::getConfigKey, ParamEnum.GovernmentConfig.EMAIL.getValue()));
if (governmentConfig != null && StringUtils.isNotBlank(governmentConfig.getValue())) {
EmailsUtil.send(governmentConfig.getValue(), receiveUser, title, content);
}

View File

@ -35,7 +35,7 @@ import java.util.Map;
* @version V1.0
*/
@RestController
@RequestMapping("/basicdata/governmentConfig")
@RequestMapping("/xmgl/governmentConfig")
@Slf4j
@Api(tags = "政务配置管理")
public class GovernmentConfigController {

View File

@ -39,7 +39,7 @@ public class GovernmentConfig implements Serializable {
*/
@Excel(name = "配置键名", width = 15)
@ApiModelProperty(value = "配置键名")
private String key;
private String configKey;
/**
* 配置值
*/

View File

@ -83,7 +83,7 @@ public class EngineeringSingleServiceImpl extends ServiceImpl<EngineeringSingleM
this.remove(Wrappers.<EngineeringSingle>lambdaQuery()
.eq(EngineeringSingle::getEngineeringSn, engineeringSn));
annexFileService.remove(Wrappers.<AnnexFile>lambdaQuery()
.eq(AnnexFile::getRelevanceId, engineeringSn).eq(AnnexFile::getFileType, ParamEnum.AnnexFileType.ENGINEERING));
.eq(AnnexFile::getRelevanceId, engineeringSn).eq(AnnexFile::getFileType, ParamEnum.AnnexFileType.ENGINEERING.getValue()));
List<EngineeringMain> engineeringMains = engineeringMainService.list(Wrappers.<EngineeringMain>lambdaQuery()
.eq(EngineeringMain::getEngineeringSn, engineeringSn));
List<Long> mainIds = engineeringMains.stream().map(m -> m.getId()).collect(Collectors.toList());