Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
41474402
Commit
41474402
authored
May 21, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除cas
parent
38b8dd5a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
0 additions
and
937 deletions
+0
-937
.factorypath
...mos-boot-system-cas/amos-boot-module-cas-api/.factorypath
+0
-0
.gitignore
.../amos-boot-system-cas/amos-boot-module-cas-api/.gitignore
+0
-2
pom.xml
...mon/amos-boot-system-cas/amos-boot-module-cas-api/pom.xml
+0
-21
IdxBizXnzsDto.java
...m/yeejoin/amos/boot/module/cas/api/dto/IdxBizXnzsDto.java
+0
-26
ResultDto.java
...a/com/yeejoin/amos/boot/module/cas/api/dto/ResultDto.java
+0
-11
IdxBizXnzs.java
...m/yeejoin/amos/boot/module/cas/api/entity/IdxBizXnzs.java
+0
-80
IdxBizXnzsMapper.java
...oin/amos/boot/module/cas/api/mapper/IdxBizXnzsMapper.java
+0
-24
IIdxBizXnzsService.java
.../amos/boot/module/cas/api/service/IIdxBizXnzsService.java
+0
-21
IdxBizXnzsMapper.xml
...le-cas-api/src/main/resources/mapper/IdxBizXnzsMapper.xml
+0
-132
pom.xml
...mon/amos-boot-system-cas/amos-boot-module-cas-biz/pom.xml
+0
-39
AmosCasApplication.java
...boot-module-cas-biz/src/main/java/AmosCasApplication.java
+0
-61
IdxBizXnzsController.java
...amos/boot/module/cas/controller/IdxBizXnzsController.java
+0
-168
IdxBizXnzsServiceImpl.java
...s/boot/module/cas/service/impl/IdxBizXnzsServiceImpl.java
+0
-164
application-dev.properties
...ule-cas-biz/src/main/resources/application-dev.properties
+0
-28
application.properties
...-module-cas-biz/src/main/resources/application.properties
+0
-53
cas-1.0.0.0.xml
...e-cas-biz/src/main/resources/db/changelog/cas-1.0.0.0.xml
+0
-20
changelog-master.xml
...-biz/src/main/resources/db/changelog/changelog-master.xml
+0
-10
logback-dev.xml
...os-boot-module-cas-biz/src/main/resources/logback-dev.xml
+0
-53
pom.xml
amos-boot-biz-common/amos-boot-system-cas/pom.xml
+0
-24
No files found.
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/.factorypath
deleted
100644 → 0
View file @
38b8dd5a
This diff is collapsed.
Click to expand it.
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/.gitignore
deleted
100644 → 0
View file @
38b8dd5a
/.apt_generated/
/.apt_generated_tests/
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/pom.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
amos-boot-system-cas
</artifactId>
<groupId>
com.amosframework.boot
</groupId>
<version>
1.0.0
</version>
</parent>
<artifactId>
amos-boot-module-cas-api
</artifactId>
<dependencies>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/java/com/yeejoin/amos/boot/module/cas/api/dto/IdxBizXnzsDto.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
api
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
* Dto
*
* @author duanwei
* @date 2022-09-14
*/
@Data
public
class
IdxBizXnzsDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
axisData
;
private
double
one
;
private
double
two
;
private
double
three
;
private
double
four
;
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/java/com/yeejoin/amos/boot/module/cas/api/dto/ResultDto.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
api
.
dto
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
ResultDto
{
List
<
List
<
Double
>>
seriesData
;
List
<
String
>
axisData
;
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/java/com/yeejoin/amos/boot/module/cas/api/entity/IdxBizXnzs.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
*
*
* @author duanwei
* @date 2022-09-14
*/
@Data
//@EqualsAndHashCode(callSuper = true)
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"IdxBizXnzs对象"
,
description
=
""
)
public
class
IdxBizXnzs
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
Boolean
valid
;
private
String
record
;
private
LocalDateTime
date
;
private
String
creator
;
@TableField
(
"creatorName"
)
private
String
creatorName
;
private
String
status
;
@TableField
(
"instanceId"
)
private
String
instanceId
;
@ApiModelProperty
(
value
=
"年份"
)
private
Integer
cNf
;
@ApiModelProperty
(
value
=
"季度"
)
private
String
cJd
;
@ApiModelProperty
(
value
=
"地市"
)
private
String
cDs
;
@ApiModelProperty
(
value
=
"季度代码"
)
private
Integer
cJddm
;
@ApiModelProperty
(
value
=
"政务大类"
)
private
String
cZwdl
;
@ApiModelProperty
(
value
=
"政务大类代码"
)
private
String
cZwdldm
;
@ApiModelProperty
(
value
=
"政务子类"
)
private
String
cZwzl
;
@ApiModelProperty
(
value
=
"政务子类代码"
)
private
String
cZwzldm
;
@ApiModelProperty
(
value
=
"效能指数"
)
private
Double
cXnzs
;
@ApiModelProperty
(
value
=
"季度权重"
)
private
Integer
cJdqz
;
@ApiModelProperty
(
value
=
"地市权重"
)
private
Integer
cDsqz
;
@ApiModelProperty
(
value
=
"报表权重"
)
private
Integer
cBbqz
;
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/java/com/yeejoin/amos/boot/module/cas/api/mapper/IdxBizXnzsMapper.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto
;
import
com.yeejoin.amos.boot.module.cas.api.entity.IdxBizXnzs
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.io.Serializable
;
import
java.util.Collection
;
import
java.util.List
;
/**
* Mapper 接口
*
* @author duanwei
* @date 2022-09-14
*/
public
interface
IdxBizXnzsMapper
extends
BaseMapper
<
IdxBizXnzs
>
{
List
<
IdxBizXnzsDto
>
select
();
List
<
IdxBizXnzsDto
>
selectZwdl
();
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/java/com/yeejoin/amos/boot/module/cas/api/service/IIdxBizXnzsService.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
api
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto
;
import
com.yeejoin.amos.boot.module.cas.api.dto.ResultDto
;
import
com.yeejoin.amos.boot.module.cas.api.entity.IdxBizXnzs
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* 服务类
*
* @author duanwei
* @date 2022-09-14
*/
public
interface
IIdxBizXnzsService
extends
IService
<
IdxBizXnzs
>
{
JSONObject
select
();
JSONObject
selectZwdl
();
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-api/src/main/resources/mapper/IdxBizXnzsMapper.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.cas.api.mapper.IdxBizXnzsMapper"
>
<select
id=
"select"
resultType=
"com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto"
>
SELECT
a.c_ds as `axisData`,
a.`one`,
b.`two`,
c.`three`,
d.`four`
FROM
(
SELECT
c_ds,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "one"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 0, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_ds
) AS a
LEFT JOIN (
SELECT
c_ds,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "two"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 1, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_ds
) AS b ON b.c_ds = a.c_ds
LEFT JOIN (
SELECT
c_ds,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "three"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 2, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_ds
) AS c ON c.c_ds = a.c_ds
LEFT JOIN (
SELECT
c_ds,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "four"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 3, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_ds
) AS d ON d.c_ds = a.c_ds
</select>
<select
id=
"selectZwdl"
resultType=
"com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto"
>
SELECT
a.c_zwdl as `axisData`,
a.`one`,
b.`two`,
c.`three`,
d.`four`
FROM
(
SELECT
c_zwdl,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "one"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 0, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_zwdl
) AS a
LEFT JOIN (
SELECT
c_zwdl,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "two"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 1, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_zwdl
) AS b ON b.c_zwdl = a.c_zwdl
LEFT JOIN (
SELECT
c_zwdl,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "three"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 2, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_zwdl
) AS c ON c.c_zwdl = a.c_zwdl
LEFT JOIN (
SELECT
c_zwdl,
round( SUM(((( `b`.`c_xnzs` * `b`.`c_jdqz` ) * `b`.`c_dsqz` ) * `b`.`c_bbqz` )), 2 ) AS "four"
FROM
idx_biz_xnzs AS b,
( SELECT c_jd, c_nf, c_jddm FROM idx_biz_xnzs GROUP BY c_jd, c_nf ORDER BY c_nf DESC, c_jddm DESC LIMIT 3, 1 ) AS a
WHERE
a.c_nf = b.c_nf
AND a.c_jddm = b.c_jddm
GROUP BY
c_zwdl
) AS d ON d.c_zwdl = a.c_zwdl
</select>
</mapper>
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/pom.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
amos-boot-system-cas
</artifactId>
<groupId>
com.amosframework.boot
</groupId>
<version>
1.0.0
</version>
</parent>
<artifactId>
amos-boot-module-cas-biz
</artifactId>
<dependencies>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-cas-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-cas-api
</artifactId>
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/java/AmosCasApplication.java
deleted
100644 → 0
View file @
38b8dd5a
import
com.yeejoin.amos.boot.biz.common.utils.oConvertUtils
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.env.Environment
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
java.net.InetAddress
;
/**
* <pre>
* 特种设备服务启动类
* </pre>
*
* @author DELL
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@EnableScheduling
@MapperScan
({
"org.typroject.tyboot.demo.face.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"org.typroject.tyboot.component.*.face.orm.dao*"
,
"com.yeejoin.amos.boot.module.**.api.mapper"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
,
"com.yeejoin.amos.boot.module.common.biz.*"
})
@ComponentScan
(
basePackages
=
{
"org.typroject"
,
"com.yeejoin.amos"
})
public
class
AmosCasApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosCasApplication
.
class
);
public
static
void
main
(
String
[]
args
)
throws
Exception
{
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosCasApplication
.
class
,
args
);
Environment
env
=
context
.
getEnvironment
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
String
port
=
env
.
getProperty
(
"server.port"
);
String
path
=
oConvertUtils
.
getString
(
env
.
getProperty
(
"server.servlet.context-path"
));
logger
.
info
(
"\n----------------------------------------------------------\n\t"
+
"Application Amos-Biz-Boot is running! Access URLs:\n\t"
+
"Swagger文档: \thttp://"
+
ip
+
":"
+
port
+
path
+
"/doc.html\n"
+
"----------------------------------------------------------"
);
}
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/java/com/yeejoin/amos/boot/module/cas/controller/IdxBizXnzsController.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto
;
import
com.yeejoin.amos.boot.module.cas.api.dto.ResultDto
;
import
com.yeejoin.amos.boot.module.cas.api.entity.IdxBizXnzs
;
import
com.yeejoin.amos.boot.module.cas.api.service.IIdxBizXnzsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Arrays
;
import
java.util.List
;
/**
*
*
* @author duanwei
* @date 2022-09-14
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/idx-biz-xnzs"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
class
IdxBizXnzsController
extends
BaseController
{
@Autowired
IIdxBizXnzsService
iIdxBizXnzsService
;
/**
* 新增
* @return
*/
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
boolean
saveIdxBizXnzs
(
HttpServletRequest
request
,
@RequestBody
IdxBizXnzs
idxBizXnzs
){
return
iIdxBizXnzsService
.
save
(
idxBizXnzs
);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
boolean
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iIdxBizXnzsService
.
removeById
(
id
);
}
/**
* 修改
* @return
*/
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改"
,
notes
=
"修改"
)
public
boolean
updateByIdIdxBizXnzs
(
HttpServletRequest
request
,
@RequestBody
IdxBizXnzs
idxBizXnzs
){
return
iIdxBizXnzsService
.
updateById
(
idxBizXnzs
);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
IdxBizXnzs
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iIdxBizXnzsService
.
getById
(
id
);
}
/**
* 列表分页查询
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
IdxBizXnzs
>
listPage
(
String
pageNum
,
String
pageSize
,
IdxBizXnzs
idxBizXnzs
){
Page
<
IdxBizXnzs
>
pageBean
;
QueryWrapper
<
IdxBizXnzs
>
idxBizXnzsQueryWrapper
=
new
QueryWrapper
<>();
Class
<?
extends
IdxBizXnzs
>
aClass
=
idxBizXnzs
.
getClass
();
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
field
.
setAccessible
(
true
);
Object
o
=
field
.
get
(
idxBizXnzs
);
if
(
o
!=
null
)
{
Class
<?>
type
=
field
.
getType
();
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
if
(
type
.
equals
(
Integer
.
class
))
{
Integer
fileValue
=
(
Integer
)
field
.
get
(
idxBizXnzs
);
idxBizXnzsQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Long
.
class
))
{
Long
fileValue
=
(
Long
)
field
.
get
(
idxBizXnzs
);
idxBizXnzsQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
idxBizXnzs
);
idxBizXnzsQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
{
String
fileValue
=
(
String
)
field
.
get
(
idxBizXnzs
);
idxBizXnzsQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
}
catch
(
Exception
e
)
{
}
});
IPage
<
IdxBizXnzs
>
page
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
}
else
{
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
page
=
iIdxBizXnzsService
.
page
(
pageBean
,
idxBizXnzsQueryWrapper
);
return
page
;
}
/**
* 查询
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/select"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询地市"
,
notes
=
"查询地市"
)
public
ResponseModel
<
JSONObject
>
select
(){
return
ResponseHelper
.
buildResponse
(
iIdxBizXnzsService
.
select
());
}
/**
* 查询政务大列
* @author 王龙
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/selectZwdl"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询政务大类"
,
notes
=
"查询政务大类"
)
public
ResponseModel
<
JSONObject
>
selectZwdl
()
{
return
ResponseHelper
.
buildResponse
(
iIdxBizXnzsService
.
selectZwdl
());
}
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/java/com/yeejoin/amos/boot/module/cas/service/impl/IdxBizXnzsServiceImpl.java
deleted
100644 → 0
View file @
38b8dd5a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cas
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.cas.api.dto.IdxBizXnzsDto
;
import
com.yeejoin.amos.boot.module.cas.api.dto.ResultDto
;
import
com.yeejoin.amos.boot.module.cas.api.entity.IdxBizXnzs
;
import
com.yeejoin.amos.boot.module.cas.api.mapper.IdxBizXnzsMapper
;
import
com.yeejoin.amos.boot.module.cas.api.service.IIdxBizXnzsService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
springfox.documentation.spring.web.json.Json
;
import
java.text.DecimalFormat
;
import
java.util.*
;
/**
* 服务实现类
*
* @author wanglong
* @date 2022-09-14
*/
@Service
public
class
IdxBizXnzsServiceImpl
extends
BaseService
<
IdxBizXnzsDto
,
IdxBizXnzs
,
IdxBizXnzsMapper
>
implements
IIdxBizXnzsService
{
@Autowired
private
IdxBizXnzsMapper
idxBizXnzsMapper
;
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
IdxBizXnzsServiceImpl
.
class
);
@Override
public
JSONObject
select
()
{
/**
* 预返回数据
*/
JSONObject
message
=
new
JSONObject
();
List
<
IdxBizXnzsDto
>
xnzsDtoList
=
idxBizXnzsMapper
.
select
();
List
<
String
>
axisData
=
new
ArrayList
<>();
// List<List<Double>> seriesDataList=new ArrayList<>();
List
<
JSONObject
>
seriesDataList
=
new
ArrayList
<>();
String
[]
borderColor
=
{
"#5966e6"
,
"#e7533b"
,
"#00c190"
,
"#8f57da"
,
"#f59c59"
,
"#19d3f3"
,
"#ff6692"
,
"#b6e880"
,
"#413a68"
,
"#f5c551"
,
"#4857c2"
,
"#ed553b"
,
"#01bb8d"
,
"#a561f3"
};
String
[]
color
=
{
"#354599"
,
"#7b393a"
,
"#047569"
,
"#584099"
,
"#835f4a"
,
"#15a7c7"
,
"#834166"
,
"#5e825c"
,
"#835a9c"
,
"#a18a49"
,
"#354599"
,
"#7b393b"
,
"#037569"
,
"#6f4ab4"
};
int
i
=
0
;
for
(
IdxBizXnzsDto
bizXnzsDto
:
xnzsDtoList
){
// List<Double> list=new ArrayList<>();
JSONObject
firstJson
=
new
JSONObject
();
JSONObject
secondJson
=
new
JSONObject
();
JSONObject
thirdly
=
new
JSONObject
();
axisData
.
add
(
bizXnzsDto
.
getAxisData
());
JSONArray
json
=
new
JSONArray
();
Double
[]
doubles
=
{
bizXnzsDto
.
getOne
(),
bizXnzsDto
.
getTwo
(),
bizXnzsDto
.
getThree
(),
bizXnzsDto
.
getFour
()};
thirdly
.
put
(
"borderWidth"
,
"2"
);
thirdly
.
put
(
"borderColor"
,
borderColor
[
i
]);
thirdly
.
put
(
"color"
,
color
[
i
]);
secondJson
.
put
(
"normal"
,
thirdly
);
i
=
i
+
1
;
Arrays
.
sort
(
doubles
);
/**
* 添加箱线图数据
*/
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
//构造方法的字符格式这里如果小数不足2位,会以0补足.String
json
.
add
(
decimalFormat
.
format
(
doubles
[
0
]));
json
.
add
(
decimalFormat
.
format
((
doubles
[
0
]+
doubles
[
1
])/
2
));
System
.
out
.
println
(
"---------------------------------"
+
Double
.
valueOf
((
doubles
[
0
]+
doubles
[
1
])/
2
));
json
.
add
(
decimalFormat
.
format
((
doubles
[
1
]+
doubles
[
2
])/
2
));
json
.
add
(
decimalFormat
.
format
((
doubles
[
2
]+
doubles
[
3
])/
2
));
json
.
add
(
decimalFormat
.
format
(
doubles
[
3
]));
firstJson
.
put
(
"value"
,
json
);
firstJson
.
put
(
"itemStyle"
,
secondJson
);
seriesDataList
.
add
(
firstJson
);
// seriesDataList.add(list);
}
message
.
put
(
"axisData"
,
axisData
);
message
.
put
(
"seriesData"
,
seriesDataList
);
return
message
;
}
/**
* 查询政务大列
* @return
*/
@Override
public
JSONObject
selectZwdl
()
{
/**
* 预返回数据
*/
JSONObject
message
=
new
JSONObject
();
List
<
String
>
axisData
=
new
ArrayList
<>();
// List<List<Double>> seriesDataList=new ArrayList<>();
List
<
JSONObject
>
seriesDataList
=
new
ArrayList
<>();
/**
* 颜色
*/
String
[]
borderColor
=
{
"#5966e6"
,
"#e7533b"
,
"#00c190"
,
"#8f57da"
,
"#f59c59"
,
"#19d3f3"
,
"#ff6692"
,
"#b6e880"
,
"#413a68"
,
"#f5c551"
,
"#4857c2"
,
"#ed553b"
,
"#01bb8d"
,
"#a561f3"
};
String
[]
color
=
{
"#354599"
,
"#7b393a"
,
"#047569"
,
"#584099"
,
"#835f4a"
,
"#15a7c7"
,
"#834166"
,
"#5e825c"
,
"#835a9c"
,
"#a18a49"
,
"#354599"
,
"#7b393b"
,
"#037569"
,
"#6f4ab4"
};
int
i
=
0
;
/**
* 获取政务大列数据
*/
List
<
IdxBizXnzsDto
>
zwdlDto
=
idxBizXnzsMapper
.
selectZwdl
();
/**
* 组装返回数据
*/
for
(
IdxBizXnzsDto
idxBizXnzsDto
:
zwdlDto
)
{
/**
* 子数据
*/
JSONObject
firstJson
=
new
JSONObject
();
JSONObject
secondJson
=
new
JSONObject
();
JSONObject
thirdly
=
new
JSONObject
();
//预返回箱线图数据
// List<Double> list = new ArrayList<>();
JSONArray
json
=
new
JSONArray
();
//添加政务大类
axisData
.
add
(
idxBizXnzsDto
.
getAxisData
());
//添加最近四季度
Double
[]
ottf
=
{
idxBizXnzsDto
.
getOne
(),
idxBizXnzsDto
.
getTwo
(),
idxBizXnzsDto
.
getThree
(),
idxBizXnzsDto
.
getFour
()};
thirdly
.
put
(
"borderWidth"
,
"2"
);
thirdly
.
put
(
"borderColor"
,
borderColor
[
i
]);
thirdly
.
put
(
"color"
,
color
[
i
]);
secondJson
.
put
(
"normal"
,
thirdly
);
i
=
i
+
1
;
//排序(从小到大)
Arrays
.
sort
(
ottf
);
/**
* 添加箱线图数据
*/
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
//构造方法的字符格式这里如果小数不足2位,会以0补足.String
json
.
add
(
decimalFormat
.
format
(
ottf
[
0
]));
json
.
add
(
decimalFormat
.
format
((
ottf
[
0
]+
ottf
[
1
])/
2
));
json
.
add
(
decimalFormat
.
format
((
ottf
[
1
]+
ottf
[
2
])/
2
));
json
.
add
(
decimalFormat
.
format
((
ottf
[
2
]+
ottf
[
3
])/
2
));
json
.
add
(
decimalFormat
.
format
(
ottf
[
3
]));
firstJson
.
put
(
"value"
,
json
);
//format 返回的是字符串
firstJson
.
put
(
"itemStyle"
,
secondJson
);
seriesDataList
.
add
(
firstJson
);
}
message
.
put
(
"seriesData"
,
seriesDataList
);
message
.
put
(
"axisData"
,
axisData
);
return
message
;
}
}
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/resources/application-dev.properties
deleted
100644 → 0
View file @
38b8dd5a
#DB properties:
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://172.16.10.210:3306/amos_idx_biz?allowMultiQueries=true&serverTimezone=GMT%2B8
\
&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
##eureka properties:
eureka.client.service-url.defaultZone
=
http://172.16.10.210:10001/eureka/
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url
=
http://172.16.3.99:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url
=
http://172.16.3.99:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://172.16.3.99:${server.port}${server.servlet.context-path}/swagger-ui.html
#redis properties:
spring.redis.database
=
1
spring.redis.host
=
172.16.10.210
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
300
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/resources/application.properties
deleted
100644 → 0
View file @
38b8dd5a
spring.application.name
=
CAS
server.servlet.context-path
=
/cas
server.port
=
12000
spring.profiles.active
=
dev
spring.jackson.time-zone
=
GMT+8
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
logging.config
=
classpath:logback-${spring.profiles.active}.xml
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
redis.cache.failure.time
=
10800
##liquibase
spring.liquibase.change-log
=
classpath:/db/changelog/changelog-master.xml
spring.liquibase.enabled
=
true
## DB properties:
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle
=
10
spring.datasource.hikari.maximum-pool-size
=
25
spring.datasource.hikari.auto-commit
=
true
spring.datasource.hikari.idle-timeout
=
30000
spring.datasource.hikari.pool-name
=
DatebookHikariCP
spring.datasource.hikari.max-lifetime
=
120000
spring.datasource.hikari.connection-timeout
=
30000
spring.datasource.hikari.connection-test-query
=
SELECT 1
## eureka properties:
eureka.client.registry-fetch-interval-seconds
=
5
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://localhost:${server.port}${server.servlet.context-path}/doc.html
## redis properties:
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
300
## emqx properties:
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.90:1883
emqx.user-name
=
super
emqx.password
=
123456
fire-rescue
=
123
\ No newline at end of file
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/resources/db/changelog/cas-1.0.0.0.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
>
<!-- <changeSet author="xl" id="2022-06-27-01">-->
<!-- <preConditions onFail="MARK_RAN">-->
<!-- <tableExists tableName="tz_task"/>-->
<!-- </preConditions>-->
<!-- <comment>modify table tz_task add task_type columns</comment>-->
<!-- <sql>-->
<!-- ALTER TABLE `tz_task` add task_type varchar(255) DEFAULT NULL COMMENT '任务类型';-->
<!-- </sql>-->
<!-- </changeSet>-->
</databaseChangeLog>
\ No newline at end of file
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/resources/db/changelog/changelog-master.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
>
<include
file=
"cas-1.0.0.0.xml"
relativeToChangelogFile=
"true"
/>
</databaseChangeLog>
amos-boot-biz-common/amos-boot-system-cas/amos-boot-module-cas-biz/src/main/resources/logback-dev.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
>
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property
name=
"LOG_HOME"
value=
"log"
/>
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<property
name=
"LOG_PATTERN"
value=
"%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %-50.50logger{50} - %msg [%file:%line] %n"
/>
<!-- 按照每天生成日志文件 -->
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<!--日志文件输出的文件名-->
<FileNamePattern>
${LOG_HOME}/tzs.log.%d{yyyy-MM-dd}.%i.log
</FileNamePattern>
<!--日志文件保留天数-->
<MaxHistory>
30
</MaxHistory>
<!--日志文件大小-->
<MaxFileSize>
30mb
</MaxFileSize>
</rollingPolicy>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<pattern>
${LOG_PATTERN}
</pattern>
</encoder>
</appender>
<!-- 控制台输出 -->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<pattern>
${LOG_PATTERN}
</pattern>
</encoder>
</appender>
<!-- show parameters for hibernate sql 专为 Hibernate 定制
<logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE" />
<logger name="org.hibernate.type.descriptor.sql.BasicExtractor" level="DEBUG" />
<logger name="org.hibernate.SQL" level="DEBUG" />
<logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
<logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />
-->
<!--myibatis log configure-->
<logger
name=
"com.apache.ibatis"
level=
"INFO"
/>
<logger
name=
"org.mybatis"
level=
"INFO"
/>
<logger
name=
"java.sql.Connection"
level=
"INFO"
/>
<logger
name=
"java.sql.Statement"
level=
"INFO"
/>
<logger
name=
"java.sql.PreparedStatement"
level=
"INFO"
/>
<logger
name=
"org.springframework"
level=
"INFO"
/>
<logger
name=
"com.baomidou.mybatisplus"
level=
"INFO"
/>
<logger
name=
"org.apache.activemq"
level=
"INFO"
/>
<logger
name=
"org.typroject"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<!-- 日志输出级别 -->
<root
level=
"DEBUG"
>
<!-- <appender-ref ref="FILE" /> -->
<appender-ref
ref=
"STDOUT"
/>
</root>
</configuration>
\ No newline at end of file
amos-boot-biz-common/amos-boot-system-cas/pom.xml
deleted
100644 → 0
View file @
38b8dd5a
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
amos-boot-system-cas
</artifactId>
<parent>
<artifactId>
amos-biz-boot
</artifactId>
<groupId>
com.amosframework.boot
</groupId>
<version>
1.0.0
</version>
</parent>
<packaging>
pom
</packaging>
<modules>
<module>
amos-boot-module-cas-api
</module>
<module>
amos-boot-module-cas-biz
</module>
</modules>
<dependencies>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-biz-common
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
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