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
87fcd234
Commit
87fcd234
authored
Jun 01, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.气瓶pom整理
2.气瓶检验超期
parent
46737649
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
124 additions
and
12 deletions
+124
-12
pom.xml
...oot-module-cylinder/amos-boot-module-cylinder-api/pom.xml
+0
-8
QuestionTypeEnum.java
...amos/boot/module/cylinder/api/enums/QuestionTypeEnum.java
+26
-0
CylinderInfoDto.java
...mos/boot/module/cylinder/flc/api/dto/CylinderInfoDto.java
+5
-0
CylinderInfo.java
...mos/boot/module/cylinder/flc/api/entity/CylinderInfo.java
+3
-0
CylinderInfoMapper.java
...ot/module/cylinder/flc/api/mapper/CylinderInfoMapper.java
+2
-0
CylinderInfoMapper.xml
...nder-api/src/main/resources/mapper/CylinderInfoMapper.xml
+17
-0
pom.xml
...oot-module-cylinder/amos-boot-module-cylinder-biz/pom.xml
+8
-0
CylinderQuestionInfoController.java
...linder/biz/controller/CylinderQuestionInfoController.java
+2
-1
InspectionOverdueJob.java
...os/boot/module/cylinder/biz/job/InspectionOverdueJob.java
+57
-0
CylinderQuestionInfoServiceImpl.java
...der/biz/service/impl/CylinderQuestionInfoServiceImpl.java
+3
-2
InspectionExpireRemindJob.java
...s/boot/module/jyjc/biz/job/InspectionExpireRemindJob.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/pom.xml
View file @
87fcd234
...
@@ -22,14 +22,6 @@
...
@@ -22,14 +22,6 @@
<version>
${amos-boot-biz.version}
</version>
<version>
${amos-boot-biz.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.javacrumbs.shedlock
</groupId>
<artifactId>
shedlock-spring
</artifactId>
</dependency>
<dependency>
<groupId>
net.javacrumbs.shedlock
</groupId>
<artifactId>
shedlock-provider-redis-spring
</artifactId>
</dependency>
<dependency>
<artifactId>
amos-component-rule
</artifactId>
<artifactId>
amos-component-rule
</artifactId>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
</dependency>
</dependency>
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/enums/QuestionTypeEnum.java
0 → 100644
View file @
87fcd234
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* @author Administrator
*/
@AllArgsConstructor
@Getter
public
enum
QuestionTypeEnum
{
/**
* 问题类型
*/
WBLSYDJ
(
"1"
,
"未办理使用登记"
),
XKCQ
(
"2"
,
"许可超期"
),
JYCQ
(
"3"
,
"检验超期"
),
JYBHG
(
"4"
,
"检验不合格"
),
WJXCZJJ
(
"5"
,
"未进行充装检查"
),
CZJCBHG
(
"6"
,
"充装检查不合格"
);
private
String
code
;
private
String
name
;
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/dto/CylinderInfoDto.java
View file @
87fcd234
...
@@ -157,4 +157,9 @@ public class CylinderInfoDto extends BaseDto {
...
@@ -157,4 +157,9 @@ public class CylinderInfoDto extends BaseDto {
private
String
inspectionDateEnd
;
private
String
inspectionDateEnd
;
private
String
inspectionDateStart
;
private
String
inspectionDateStart
;
/**
* 最新检验一条数据
*/
private
String
lastInspectionId
;
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/entity/CylinderInfo.java
View file @
87fcd234
...
@@ -123,4 +123,7 @@ public class CylinderInfo extends BaseEntity {
...
@@ -123,4 +123,7 @@ public class CylinderInfo extends BaseEntity {
@ApiModelProperty
(
value
=
"是否保存到es(1标识已经保存过)"
)
@ApiModelProperty
(
value
=
"是否保存到es(1标识已经保存过)"
)
private
String
isNotEs
;
private
String
isNotEs
;
@ApiModelProperty
(
value
=
"最新检验一条数据"
)
private
String
lastInspectionId
;
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/mapper/CylinderInfoMapper.java
View file @
87fcd234
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
flc
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
flc
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInfoDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInfoDto
;
...
@@ -107,4 +108,5 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
...
@@ -107,4 +108,5 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Map
<
String
,
Object
>
countFillingTimesAndQuantityByCompany
(
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
);
Map
<
String
,
Object
>
countFillingTimesAndQuantityByCompany
(
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
);
List
<
CylinderInfoDto
>
queryCylinderOfInspectionOverdue
();
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
87fcd234
...
@@ -438,6 +438,23 @@
...
@@ -438,6 +438,23 @@
</if>
</if>
</select>
</select>
<select
id=
"queryCylinderOfInspectionOverdue"
resultType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInfoDto"
>
SELECT
a.app_id,
u.unit_name,
u.region_code,
a.factory_num,
a.sequence_code
FROM
tz_cylinder_info a,
tz_cylinder_inspection b,
tz_cylinder_unit u
where
a.sequence_code = b.sequence_code
and u.credit_code = a.credit_code
and a.last_inspection_id = b.sequence_nbr
and date_gt(CURRENT_DATE, cast(b.next_inspection_date as date))
</select>
<update
id=
"updateEsCylinderInfoStatus"
>
<update
id=
"updateEsCylinderInfoStatus"
>
UPDATE tz_cylinder_info SET "is_not_es" = 1 WHERE "sequence_nbr" IN
UPDATE tz_cylinder_info SET "is_not_es" = 1 WHERE "sequence_nbr" IN
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/pom.xml
View file @
87fcd234
...
@@ -30,6 +30,14 @@
...
@@ -30,6 +30,14 @@
<groupId>
org.apache.httpcomponents
</groupId>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpmime
</artifactId>
<artifactId>
httpmime
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
net.javacrumbs.shedlock
</groupId>
<artifactId>
shedlock-spring
</artifactId>
</dependency>
<dependency>
<groupId>
net.javacrumbs.shedlock
</groupId>
<artifactId>
shedlock-provider-redis-spring
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/biz/controller/CylinderQuestionInfoController.java
View file @
87fcd234
...
@@ -96,12 +96,13 @@ public class CylinderQuestionInfoController extends BaseController {
...
@@ -96,12 +96,13 @@ public class CylinderQuestionInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"问题信息列表分页查询"
,
notes
=
"问题信息列表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"问题信息列表分页查询"
,
notes
=
"问题信息列表分页查询"
)
public
ResponseModel
<
Page
<
CylinderQuestionInfoDto
>>
queryForPage
(
@ApiParam
(
value
=
"页数"
)
@RequestParam
(
value
=
"current"
)
int
current
,
public
ResponseModel
<
Page
<
CylinderQuestionInfoDto
>>
queryForPage
(
@ApiParam
(
value
=
"页数"
)
@RequestParam
(
value
=
"current"
)
int
current
,
@ApiParam
(
value
=
"每页大小"
)
@RequestParam
(
value
=
"size"
)
int
size
,
@ApiParam
(
value
=
"每页大小"
)
@RequestParam
(
value
=
"size"
)
int
size
,
@ApiParam
(
value
=
"appId"
)
@RequestParam
(
value
=
"appId"
,
required
=
false
)
String
appId
,
@ApiParam
(
value
=
"问题类型枚举"
)
@RequestParam
(
value
=
"questionType"
,
required
=
false
)
String
questionType
,
@ApiParam
(
value
=
"问题类型枚举"
)
@RequestParam
(
value
=
"questionType"
,
required
=
false
)
String
questionType
,
@ApiParam
(
value
=
"行政区域code"
)
@RequestParam
(
value
=
"regionCode"
,
required
=
false
)
String
regionCode
)
{
@ApiParam
(
value
=
"行政区域code"
)
@RequestParam
(
value
=
"regionCode"
,
required
=
false
)
String
regionCode
)
{
Page
<
CylinderQuestionInfoDto
>
page
=
new
Page
<
CylinderQuestionInfoDto
>();
Page
<
CylinderQuestionInfoDto
>
page
=
new
Page
<
CylinderQuestionInfoDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
cylinderQuestionInfoServiceImpl
.
queryForCylinderQuestionInfoPage
(
page
,
questionType
,
regionCode
));
return
ResponseHelper
.
buildResponse
(
cylinderQuestionInfoServiceImpl
.
queryForCylinderQuestionInfoPage
(
page
,
questionType
,
regionCode
,
appId
));
}
}
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/biz/job/InspectionOverdueJob.java
0 → 100644
View file @
87fcd234
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
biz
.
job
;
import
com.yeejoin.amos.boot.module.cylinder.api.entity.CylinderQuestionInfo
;
import
com.yeejoin.amos.boot.module.cylinder.api.enums.QuestionTypeEnum
;
import
com.yeejoin.amos.boot.module.cylinder.biz.service.impl.CylinderQuestionInfoServiceImpl
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.dto.CylinderInfoDto
;
import
com.yeejoin.amos.boot.module.cylinder.flc.api.mapper.CylinderInfoMapper
;
import
net.javacrumbs.shedlock.spring.annotation.SchedulerLock
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* @author Administrator
*/
@Component
@EnableScheduling
public
class
InspectionOverdueJob
{
private
CylinderInfoMapper
cylinderInfoMapper
;
private
CylinderQuestionInfoServiceImpl
questionInfoService
;
public
InspectionOverdueJob
(
CylinderInfoMapper
cylinderInfoMapper
,
CylinderQuestionInfoServiceImpl
questionInfoService
)
{
this
.
cylinderInfoMapper
=
cylinderInfoMapper
;
this
.
questionInfoService
=
questionInfoService
;
}
@SchedulerLock
(
name
=
"overdueQuestionJobCylinder"
,
lockAtMostFor
=
"PT1H"
)
@Scheduled
(
cron
=
"${inspection.overdue.job.cron:0 0 2 * * ?}"
)
public
void
genOverdueQuestion
()
{
List
<
CylinderInfoDto
>
cylinderInfo
=
cylinderInfoMapper
.
queryCylinderOfInspectionOverdue
();
List
<
CylinderQuestionInfo
>
cylinderQuestionInfos
=
cylinderInfo
.
stream
().
map
(
cylinderInfoDto
->
{
CylinderQuestionInfo
cylinderQuestionInfo
=
new
CylinderQuestionInfo
();
cylinderQuestionInfo
.
setQuestionType
(
QuestionTypeEnum
.
JYCQ
.
getCode
());
cylinderQuestionInfo
.
setQuestionTypeName
(
QuestionTypeEnum
.
JYCQ
.
getName
());
cylinderQuestionInfo
.
setHappenDate
(
new
Date
());
cylinderQuestionInfo
.
setRecDate
(
new
Date
());
cylinderQuestionInfo
.
setRegionCode
(
cylinderInfoDto
.
getRegionCode
());
cylinderQuestionInfo
.
setQuestionObjectId
(
cylinderInfoDto
.
getSequenceCode
());
cylinderQuestionInfo
.
setQuestionObjectName
(
cylinderInfoDto
.
getFactoryNum
());
cylinderQuestionInfo
.
setQuestionAttributionId
(
cylinderInfoDto
.
getAppId
());
cylinderQuestionInfo
.
setQuestionAttributionName
(
cylinderInfoDto
.
getUnitName
());
return
cylinderQuestionInfo
;
}).
collect
(
Collectors
.
toList
());
if
(
cylinderQuestionInfos
.
size
()
>
0
)
{
questionInfoService
.
saveBatch
(
cylinderQuestionInfos
);
}
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/biz/service/impl/CylinderQuestionInfoServiceImpl.java
View file @
87fcd234
...
@@ -21,8 +21,8 @@ public class CylinderQuestionInfoServiceImpl extends BaseService<CylinderQuestio
...
@@ -21,8 +21,8 @@ public class CylinderQuestionInfoServiceImpl extends BaseService<CylinderQuestio
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
CylinderQuestionInfoDto
>
queryForCylinderQuestionInfoPage
(
Page
<
CylinderQuestionInfoDto
>
page
,
String
questionType
,
@Condition
(
value
=
Operator
.
like
)
String
regionCode
)
{
public
Page
<
CylinderQuestionInfoDto
>
queryForCylinderQuestionInfoPage
(
Page
<
CylinderQuestionInfoDto
>
page
,
String
questionType
,
@Condition
(
value
=
Operator
.
like
)
String
regionCode
,
String
questionAttributionId
)
{
return
this
.
queryForPage
(
page
,
"happen_date"
,
true
,
questionType
,
regionCode
);
return
this
.
queryForPage
(
page
,
"happen_date"
,
true
,
questionType
,
regionCode
,
questionAttributionId
);
}
}
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/job/InspectionExpireRemindJob.java
View file @
87fcd234
...
@@ -62,7 +62,7 @@ public class InspectionExpireRemindJob {
...
@@ -62,7 +62,7 @@ public class InspectionExpireRemindJob {
}
}
@Scheduled
(
cron
=
"${inspection.expire.remind.job.cron:0 0 8 * * ?}"
)
@Scheduled
(
cron
=
"${inspection.expire.remind.job.cron:0 0 8 * * ?}"
)
@SchedulerLock
(
name
=
"sendReminderMessage
Job
"
,
lockAtMostFor
=
"PT1H"
)
@SchedulerLock
(
name
=
"sendReminderMessage"
,
lockAtMostFor
=
"PT1H"
)
public
void
sendReminderMessage
()
{
public
void
sendReminderMessage
()
{
// 1.查询临期和超期的设备
// 1.查询临期和超期的设备
List
<
NeedTipEquipInfo
>
needTipEquipList
=
getNeedTipEquipList
();
List
<
NeedTipEquipInfo
>
needTipEquipList
=
getNeedTipEquipList
();
...
...
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