mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-11-13 09:46:09 +08:00
admin后台可关联商户;fastmybatis升级到3.1.7
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
## 日常更新
|
||||
|
||||
- 2025-08-17:admin后台可关联商户;fastmybatis升级到3.1.6。有升级SQL,见:[sop-20250817.sql](./upgrade/sop-20250817.sql)
|
||||
- 2025-08-17:admin后台可关联商户;fastmybatis升级到3.1.7。有升级SQL,见:[sop-20250817.sql](./upgrade/sop-20250817.sql)
|
||||
- 2025-07-22: 修复当objClass被代理后,获取不到interface BUG
|
||||
- 2025-06-15:新增帮助文档管理。有升级SQL,见:[sop-20250615.sql](./upgrade/sop-20250615.sql)
|
||||
- 2025-06-11:java-sdk添加文件下载示例
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -50,7 +50,7 @@
|
||||
<commons-logging.version>1.2</commons-logging.version>
|
||||
<validation-api.version>2.0.1.Final</validation-api.version>
|
||||
<hibernate-validator.version>6.0.13.Final</hibernate-validator.version>
|
||||
<fastmybatis.version>3.1.6</fastmybatis.version>
|
||||
<fastmybatis.version>3.1.7</fastmybatis.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
public interface IsvInfoMapper extends BaseMapper<IsvInfo> {
|
||||
|
||||
default IsvInfo getByAppId(String appId) {
|
||||
return this.get(IsvInfo::getAppId, appId);
|
||||
return this.getByField(IsvInfo::getAppId, appId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
public interface IsvKeysMapper extends BaseMapper<IsvKeys> {
|
||||
|
||||
default IsvKeys getByIsvId(Long isvId) {
|
||||
return this.get(IsvKeys::getIsvId, isvId);
|
||||
return this.getByField(IsvKeys::getIsvId, isvId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class LocalIsvManagerImpl implements IsvManager {
|
||||
protected IsvDTO search(String appId) {
|
||||
IsvInfo isvInfo = isvInfoMapper.getByAppId(appId);
|
||||
IsvDTO isvDTO = CopyUtil.copyBean(isvInfo, IsvDTO::new);
|
||||
IsvMerchant isvMerchant = isvMerchantMapper.get(IsvMerchant::getAppId, appId);
|
||||
IsvMerchant isvMerchant = isvMerchantMapper.getByField(IsvMerchant::getAppId, appId);
|
||||
if (isvMerchant != null) {
|
||||
isvDTO.setMerchantCode(isvMerchant.getMerchantCode());
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class SysConfigService extends BaseLambdaService<SysConfig, SysConfigMapp
|
||||
*/
|
||||
public String getConfigValue(String key, String defaultValue) {
|
||||
Objects.requireNonNull(key, "need key");
|
||||
SysConfig systemConfig = get(SysConfig::getConfigKey, key);
|
||||
SysConfig systemConfig = getByField(SysConfig::getConfigKey, key);
|
||||
return Optional.ofNullable(systemConfig)
|
||||
.map(SysConfig::getConfigValue)
|
||||
.orElseGet(() -> environment.getProperty(key, defaultValue));
|
||||
|
||||
@@ -33,7 +33,7 @@ public class WebsiteService {
|
||||
private DocSettingService docSettingService;
|
||||
|
||||
public List<DocAppDTO> listDocApp() {
|
||||
List<DocApp> docApps = docAppService.list(DocApp::getIsPublish, YesOrNo.YES);
|
||||
List<DocApp> docApps = docAppService.listByField(DocApp::getIsPublish, YesOrNo.YES);
|
||||
return CopyUtil.copyList(docApps, DocAppDTO::new);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user