Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
3a476ecb
Commit
3a476ecb
authored
Aug 14, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
屏蔽无用代码,修改现场bug
parent
4a31f245
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
65 deletions
+78
-65
pom.xml
amos-boot-data/amos-boot-data-accessapi/pom.xml
+6
-6
AccessapiApplication.java
.../src/main/java/com/yeejoin/amos/AccessapiApplication.java
+7
-7
HouseholdPvUtils.java
...yeejoin/amos/api/householdapi/Utils/HouseholdPvUtils.java
+0
-0
HouseholdTestController.java
.../api/householdapi/controller/HouseholdTestController.java
+50
-50
TaBusinessServiceImpl.java
.../amos/api/openapi/face/service/TaBusinessServiceImpl.java
+12
-2
DockingData.java
...c/main/java/com/yeejoin/amos/dockingData/DockingData.java
+0
-0
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+3
-0
No files found.
amos-boot-data/amos-boot-data-accessapi/pom.xml
View file @
3a476ecb
...
@@ -175,12 +175,12 @@
...
@@ -175,12 +175,12 @@
<artifactId>
hutool-all
</artifactId>
<artifactId>
hutool-all
</artifactId>
<version>
5.7.22
</version>
<version>
5.7.22
</version>
</dependency>
</dependency>
<dependency
>
<!-- <dependency>--
>
<groupId>
com.yeejoin
</groupId
>
<!-- <groupId>com.yeejoin</groupId>--
>
<artifactId>
amos-component-influxdb
</artifactId
>
<!-- <artifactId>amos-component-influxdb</artifactId>--
>
<version>
1.8.5-SNAPSHOT
</version
>
<!-- <version>1.8.5-SNAPSHOT</version>--
>
<scope>
compile
</scope
>
<!-- <scope>compile</scope>--
>
</dependency
>
<!-- </dependency>--
>
<dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-security
</artifactId>
<artifactId>
amos-component-security
</artifactId>
...
...
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/AccessapiApplication.java
View file @
3a476ecb
...
@@ -47,8 +47,8 @@ import com.yeejoin.amos.api.openapi.face.service.TaAccessConfigServiceImpl;
...
@@ -47,8 +47,8 @@ import com.yeejoin.amos.api.openapi.face.service.TaAccessConfigServiceImpl;
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
public
class
AccessapiApplication
{
public
class
AccessapiApplication
{
//
@Autowired
@Autowired
//
private TaAccessConfigServiceImpl taAccessConfigServiceImpl;
private
TaAccessConfigServiceImpl
taAccessConfigServiceImpl
;
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
AccessapiApplication
.
class
);
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
AccessapiApplication
.
class
);
...
@@ -69,9 +69,9 @@ public class AccessapiApplication {
...
@@ -69,9 +69,9 @@ public class AccessapiApplication {
+
path
+
"/doc.html\n"
+
"----------------------------------------------------------"
);
+
path
+
"/doc.html\n"
+
"----------------------------------------------------------"
);
}
}
//
@Bean
@Bean
//
public void initAccessConfig() {
public
void
initAccessConfig
()
{
//
taAccessConfigServiceImpl.refreshConfig();
taAccessConfigServiceImpl
.
refreshConfig
();
//
taAccessConfigServiceImpl.startTask();
taAccessConfigServiceImpl
.
startTask
();
//
}
}
}
}
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/householdapi/Utils/HouseholdPvUtils.java
View file @
3a476ecb
This diff is collapsed.
Click to expand it.
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/householdapi/controller/HouseholdTestController.java
View file @
3a476ecb
package
com
.
yeejoin
.
amos
.
api
.
householdapi
.
controller
;
//
package com.yeejoin.amos.api.householdapi.controller;
//
import
cn.hutool.http.HttpUtil
;
//
import cn.hutool.http.HttpUtil;
import
com.yeejoin.amos.api.householdapi.Utils.HouseholdPvUtils
;
//
import com.yeejoin.amos.api.householdapi.Utils.HouseholdPvUtils;
import
com.yeejoin.amos.api.householdapi.face.model.HouseholdPvApiDto
;
//
import com.yeejoin.amos.api.householdapi.face.model.HouseholdPvApiDto;
import
com.yeejoin.amos.api.householdapi.face.model.HouseholdPvProducerInfoDto
;
//
import com.yeejoin.amos.api.householdapi.face.model.HouseholdPvProducerInfoDto;
import
com.yeejoin.amos.api.householdapi.face.service.impl.HouseholdPvApiServiceImpl
;
//
import com.yeejoin.amos.api.householdapi.face.service.impl.HouseholdPvApiServiceImpl;
import
com.yeejoin.amos.api.householdapi.face.service.impl.HouseholdPvProducerInfoServiceImpl
;
//
import com.yeejoin.amos.api.householdapi.face.service.impl.HouseholdPvProducerInfoServiceImpl;
import
com.yeejoin.amos.openapi.enums.PVProducerInfoEnum
;
//
import com.yeejoin.amos.openapi.enums.PVProducerInfoEnum;
import
fastjson.JSON
;
//
import fastjson.JSON;
import
io.swagger.annotations.Api
;
//
import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
//
import io.swagger.annotations.ApiOperation;
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.PostMapping
;
//
import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestMapping
;
//
import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
//
import org.springframework.web.bind.annotation.RestController;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
//
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
//
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
//
import
java.io.IOException
;
//
import java.io.IOException;
import
java.util.HashMap
;
//
import java.util.HashMap;
import
java.util.Map
;
//
import java.util.Map;
//
//
/**
/
//
**
* 户用光伏-厂商API haders
//
* 户用光伏-厂商API haders
*
//
*
* @author system_generator
//
* @author system_generator
* @date 2023-06-07
//
* @date 2023-06-07
*/
//
*/
@RestController
//
@RestController
@Api
(
tags
=
"测试"
)
//
@Api(tags = "测试")
@RequestMapping
(
value
=
"/household-pv-api-test1"
)
//
@RequestMapping(value = "/household-pv-api-test1")
public
class
HouseholdTestController
{
//
public class HouseholdTestController {
@Autowired
//
@Autowired
private
HouseholdPvUtils
householdPvUtils
;
//
private HouseholdPvUtils householdPvUtils;
//
//
/**
//
/**
* 新增户用光伏-厂商API haders
//
* 新增户用光伏-厂商API haders
*
//
*
* @return
//
* @return
*/
//
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
//
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@PostMapping
(
value
=
"/gdwdemo"
)
//
@PostMapping(value = "/gdwdemo")
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"固德威示例"
,
notes
=
"固德威示例"
)
//
@ApiOperation(httpMethod = "get", value = "固德威示例", notes = "固德威示例")
public
String
save
(
Long
seq
)
throws
IOException
{
//
public String save(Long seq) throws IOException {
return
householdPvUtils
.
gerResponseByAPiID
(
seq
);
//
return householdPvUtils.gerResponseByAPiID(seq);
}
//
}
}
//
}
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/TaBusinessServiceImpl.java
View file @
3a476ecb
...
@@ -10,6 +10,8 @@ import com.csoft.sdk.domain.CsoftDataApiXixianGetzhutiinfoParam;
...
@@ -10,6 +10,8 @@ import com.csoft.sdk.domain.CsoftDataApiXixianGetzhutiinfoParam;
import
com.csoft.sdk.domain.request.CsoftDataApiXixianGetzhutiinfoRequest
;
import
com.csoft.sdk.domain.request.CsoftDataApiXixianGetzhutiinfoRequest
;
import
com.csoft.sdk.domain.response.CsoftDataApiXixianGetzhutiinfoResponse
;
import
com.csoft.sdk.domain.response.CsoftDataApiXixianGetzhutiinfoResponse
;
import
com.yeejoin.amos.api.openapi.face.orm.dao.DataDictionaryMapper
;
import
com.yeejoin.amos.api.openapi.face.orm.dao.DataDictionaryMapper
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
...
@@ -34,7 +36,7 @@ import com.yeejoin.amos.api.openapi.face.orm.entity.TaLicenseBaseInfo;
...
@@ -34,7 +36,7 @@ import com.yeejoin.amos.api.openapi.face.orm.entity.TaLicenseBaseInfo;
*/
*/
@Service
@Service
public
class
TaBusinessServiceImpl
extends
BaseService
<
TaAccessConfigModel
,
TaAccessConfig
,
TaAccessConfigMapper
>
{
public
class
TaBusinessServiceImpl
extends
BaseService
<
TaAccessConfigModel
,
TaAccessConfig
,
TaAccessConfigMapper
>
{
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
TaBusinessServiceImpl
.
class
);
@Autowired
@Autowired
private
DataDictionaryMapper
dataDictionaryMapper
;
private
DataDictionaryMapper
dataDictionaryMapper
;
...
@@ -50,8 +52,16 @@ public class TaBusinessServiceImpl extends BaseService<TaAccessConfigModel, TaAc
...
@@ -50,8 +52,16 @@ public class TaBusinessServiceImpl extends BaseService<TaAccessConfigModel, TaAc
CsoftDataApiXixianGetzhutiinfoParam
csoftDataApiXixianParam
=
new
CsoftDataApiXixianGetzhutiinfoParam
();
CsoftDataApiXixianGetzhutiinfoParam
csoftDataApiXixianParam
=
new
CsoftDataApiXixianGetzhutiinfoParam
();
csoftDataApiXixianParam
.
setUniscid
(
code
);
csoftDataApiXixianParam
.
setUniscid
(
code
);
CsoftDataApiXixianGetzhutiinfoRequest
request
=
new
CsoftDataApiXixianGetzhutiinfoRequest
(
csoftDataApiXixianParam
);
CsoftDataApiXixianGetzhutiinfoRequest
request
=
new
CsoftDataApiXixianGetzhutiinfoRequest
(
csoftDataApiXixianParam
);
CsoftDataApiXixianGetzhutiinfoResponse
response
=
client
.
execute
(
request
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
CsoftDataApiXixianGetzhutiinfoResponse
response
=
null
;
try
{
log
.
info
(
"请求查询工商信息前"
);
response
=
client
.
execute
(
request
);
log
.
info
(
"请求查询工商信息完成,{}"
,
response
);
}
catch
(
Exception
e
)
{
log
.
error
(
"返回信息,{}"
,
e
.
getMessage
());
return
null
;
}
// 4.返回校验
// 4.返回校验
if
(
response
.
isSuccess
())
{
if
(
response
.
isSuccess
())
{
System
.
out
.
println
(
"成功:"
+
response
.
getData
());
System
.
out
.
println
(
"成功:"
+
response
.
getData
());
...
...
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/dockingData/DockingData.java
View file @
3a476ecb
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
3a476ecb
...
@@ -371,6 +371,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
...
@@ -371,6 +371,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
// 2.组织返回数据
// 2.组织返回数据
//2.1 工商信息查询
//2.1 工商信息查询
Map
<
String
,
Object
>
resultMap
=
accessFeignService
.
getData
(
unitCode
).
getResult
();
Map
<
String
,
Object
>
resultMap
=
accessFeignService
.
getData
(
unitCode
).
getResult
();
if
(
resultMap
==
null
){
throw
new
BadRequest
(
"工商信息接口查询失败,请稍后再试!"
);
}
if
(!
ValidationUtil
.
isEmpty
(
resultMap
)){
if
(!
ValidationUtil
.
isEmpty
(
resultMap
)){
// 2.2 工商信息组装
// 2.2 工商信息组装
String
area
=
String
.
valueOf
(
resultMap
.
get
(
"area"
));
String
area
=
String
.
valueOf
(
resultMap
.
get
(
"area"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment