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
6999bdf0
Commit
6999bdf0
authored
Mar 31, 2022
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改气瓶系统bug
parent
f8f5705c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
87 additions
and
75 deletions
+87
-75
MetaHandler.java
...in/java/com/yeejoin/amos/boot/biz/config/MetaHandler.java
+2
-2
MyBatisPlusConfig.java
...a/com/yeejoin/amos/boot/biz/config/MyBatisPlusConfig.java
+12
-17
CylinderFillingRecordDto.java
...boot/module/tzs/flc/api/dto/CylinderFillingRecordDto.java
+2
-4
CylinderFillingDataUnit.java
...ot/module/tzs/flc/api/entity/CylinderFillingDataUnit.java
+1
-1
CylinderFillingRecordMapper.xml
...src/main/resources/mapper/CylinderFillingRecordMapper.xml
+1
-1
CylinderInfoMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
+10
-13
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+1
-3
CylinderAreaDataController.java
...le/tzs/flc/biz/controller/CylinderAreaDataController.java
+10
-12
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+0
-0
CylinderFillingRecordServiceImpl.java
...lc/biz/service/impl/CylinderFillingRecordServiceImpl.java
+25
-14
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+0
-0
pom.xml
pom.xml
+23
-8
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/config/MetaHandler.java
View file @
6999bdf0
...
@@ -125,8 +125,8 @@ public class MetaHandler implements MetaObjectHandler {
...
@@ -125,8 +125,8 @@ public class MetaHandler implements MetaObjectHandler {
*/
*/
@Override
@Override
public
void
updateFill
(
MetaObject
metaObject
)
{
public
void
updateFill
(
MetaObject
metaObject
)
{
Class
clazz
=
metaObject
.
getOriginalObject
().
getClass
();
Class
<?>
clazz
=
metaObject
.
getOriginalObject
().
getClass
();
FillCommonUserField
annotation
=
(
FillCommonUserField
)
clazz
.
getAnnotation
(
FillCommonUserField
.
class
);
FillCommonUserField
annotation
=
clazz
.
getAnnotation
(
FillCommonUserField
.
class
);
if
(
annotation
==
null
||
annotation
.
isAutoFill
())
{
if
(
annotation
==
null
||
annotation
.
isAutoFill
())
{
String
userId
=
RequestContext
.
getExeUserId
();
String
userId
=
RequestContext
.
getExeUserId
();
ReginParams
reginParams
=
ReginParams
reginParams
=
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/config/MyBatisPlusConfig.java
View file @
6999bdf0
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
config
;
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
config
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer
;
import
com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer
;
import
com.baomidou.mybatisplus.core.MybatisConfiguration
;
import
com.baomidou.mybatisplus.core.config.GlobalConfig
;
import
com.baomidou.mybatisplus.core.config.GlobalConfig
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
import
com.yeejoin.amos.boot.biz.common.interceptors.PermissionInterceptor
;
import
com.yeejoin.amos.boot.biz.common.interceptors.PermissionInterceptor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
...
@@ -30,18 +32,16 @@ public class MyBatisPlusConfig {
...
@@ -30,18 +32,16 @@ public class MyBatisPlusConfig {
public
Sequence
sequence
()
{
public
Sequence
sequence
()
{
return
new
Sequence
();
return
new
Sequence
();
}
}
/**
/**
* plus分页插件支持
* plus分页插件支持
*/
*/
// @Bean
@Bean
// public PaginationInterceptor paginationInterceptor() {
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
// PaginationInterceptor page = new PaginationInterceptor();
MybatisPlusInterceptor
mybatisPlusInterceptor
=
new
MybatisPlusInterceptor
();
// //设置方言类型
mybatisPlusInterceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
MYSQL
));
// page.setDialectType("mysql");
return
mybatisPlusInterceptor
;
// //不限制
}
// page.setLimit(-1);
// return page;
// }
/**
/**
* pageHelper插件支持
* pageHelper插件支持
...
@@ -50,15 +50,10 @@ public class MyBatisPlusConfig {
...
@@ -50,15 +50,10 @@ public class MyBatisPlusConfig {
*/
*/
@Bean
@Bean
ConfigurationCustomizer
mybatisConfigurationCustomizer
()
{
ConfigurationCustomizer
mybatisConfigurationCustomizer
()
{
return
new
ConfigurationCustomizer
()
{
return
configuration
->
configuration
.
addInterceptor
(
new
com
.
github
.
pagehelper
.
PageInterceptor
());
@Override
public
void
customize
(
MybatisConfiguration
configuration
)
{
configuration
.
addInterceptor
(
new
com
.
github
.
pagehelper
.
PageInterceptor
());
}
};
}
}
@ConditionalOnProperty
(
name
=
"mybatis.interceptor.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
@ConditionalOnProperty
(
name
=
"mybatis.interceptor.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
@Bean
@Bean
public
PermissionInterceptor
permissionInterceptor
()
{
public
PermissionInterceptor
permissionInterceptor
()
{
return
new
PermissionInterceptor
();
return
new
PermissionInterceptor
();
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderFillingRecordDto.java
View file @
6999bdf0
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -15,7 +16,7 @@ import java.util.Date;
...
@@ -15,7 +16,7 @@ import java.util.Date;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"CylinderFillingRecordDto"
,
description
=
"液化气体气瓶充装信息-充装记录"
)
@ApiModel
(
value
=
"CylinderFillingRecordDto"
,
description
=
"液化气体气瓶充装信息-充装记录"
)
public
class
CylinderFillingRecordDto
extends
BaseDto
{
public
class
CylinderFillingRecordDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -69,7 +70,6 @@ public class CylinderFillingRecordDto extends BaseDto {
...
@@ -69,7 +70,6 @@ public class CylinderFillingRecordDto extends BaseDto {
@ApiModelProperty
(
value
=
"异常情况"
)
@ApiModelProperty
(
value
=
"异常情况"
)
private
String
abnormalStr
;
private
String
abnormalStr
;
@ApiModelProperty
(
value
=
"充装前检查时间"
)
@ApiModelProperty
(
value
=
"充装前检查时间"
)
private
String
inspectionDate
;
private
String
inspectionDate
;
...
@@ -98,7 +98,6 @@ public class CylinderFillingRecordDto extends BaseDto {
...
@@ -98,7 +98,6 @@ public class CylinderFillingRecordDto extends BaseDto {
@ApiModelProperty
(
value
=
"对接公司编码"
)
@ApiModelProperty
(
value
=
"对接公司编码"
)
private
String
appId
;
private
String
appId
;
@ApiModelProperty
(
value
=
"是否在检验有效期以内"
)
@ApiModelProperty
(
value
=
"是否在检验有效期以内"
)
private
String
isValid
;
private
String
isValid
;
...
@@ -135,5 +134,4 @@ public class CylinderFillingRecordDto extends BaseDto {
...
@@ -135,5 +134,4 @@ public class CylinderFillingRecordDto extends BaseDto {
@ApiModelProperty
(
value
=
"气瓶粘贴警示标签和充装标签"
)
@ApiModelProperty
(
value
=
"气瓶粘贴警示标签和充装标签"
)
private
Integer
warningSign
;
private
Integer
warningSign
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/CylinderFillingDataUnit.java
View file @
6999bdf0
...
@@ -23,7 +23,7 @@ public class CylinderFillingDataUnit extends BaseEntity {
...
@@ -23,7 +23,7 @@ public class CylinderFillingDataUnit extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
上
月充装量
*
本
月充装量
*/
*/
@TableField
(
"total_sum"
)
@TableField
(
"total_sum"
)
private
Double
totalSum
;
private
Double
totalSum
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderFillingRecordMapper.xml
View file @
6999bdf0
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</select>
</select>
<select
id=
"queryListByQueryDto"
resultType=
"java.util.Map"
>
<select
id=
"queryListByQueryDto"
>
SELECT
SELECT
r.sequence_nbr AS sequenceNbr,
r.sequence_nbr AS sequenceNbr,
r.filling_unit_name AS fillingUnitName,
r.filling_unit_name AS fillingUnitName,
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
6999bdf0
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!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.tzs.flc.api.mapper.CylinderInfoMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInfoMapper"
>
<select
id=
"queryNumAndOutOfDateNum"
resultType=
"java.util.Map"
>
<select
id=
"queryNumAndOutOfDateNum"
resultType=
"java.util.Map"
>
SELECT
SELECT
count( sequence_nbr ) AS cylinderNum,
count( sequence_nbr ) AS cylinderNum,
...
@@ -21,22 +20,22 @@
...
@@ -21,22 +20,22 @@
)
)
</select>
</select>
<select
id=
"getLastMonthInfoTotal"
resultType=
"java.lang.Integer"
>
<sql
id=
"selectAPPIdByRegionCode"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( sync_date, '%Y%m' ) ) =1 AND app_id in (
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
)
</sql>
<select
id=
"getLastMonthInfoTotal"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) ,
date_format( sync_date, '%Y%m' ) ) =1 AND app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
</select>
</select>
<select
id=
"getMonthBeforeLastInfoTotal"
resultType=
"java.lang.Integer"
>
<select
id=
"getMonthBeforeLastInfoTotal"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( sync_date, '%Y%m' ) ) =2 AND app_id in (
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) ,
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
date_format( sync_date, '%Y%m' ) ) =2 AND app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
)
</select>
</select>
<select
id=
"getInfoTotalByRegionCode"
resultType=
"java.lang.Integer"
>
<select
id=
"getInfoTotalByRegionCode"
resultType=
"java.lang.Integer"
>
select count(sequence_nbr) from tz_cylinder_info where app_id in (
select count(sequence_nbr) from tz_cylinder_info where app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
)
</select>
</select>
<select
id=
"queryIntegirtyByAppId"
resultType=
"java.lang.Double"
>
<select
id=
"queryIntegirtyByAppId"
resultType=
"java.lang.Double"
>
...
@@ -44,9 +43,7 @@
...
@@ -44,9 +43,7 @@
</select>
</select>
<select
id=
"getWarnNum"
resultType=
"java.lang.Integer"
>
<select
id=
"getWarnNum"
resultType=
"java.lang.Integer"
>
select count(1) from view_cylider_outofdate v where v.app_id in (
select count(1) from view_cylider_outofdate v where v.app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
)
</select>
</select>
<select
id=
"getLastMonthInfoTotalUnit"
resultType=
"java.lang.Integer"
>
<select
id=
"getLastMonthInfoTotalUnit"
resultType=
"java.lang.Integer"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
6999bdf0
...
@@ -2,14 +2,11 @@ package com.yeejoin.equipmanage.service.impl;
...
@@ -2,14 +2,11 @@ package com.yeejoin.equipmanage.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
...
@@ -1671,6 +1668,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1671,6 +1668,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
return
SourcesStatisticsImpl
.
PREFIX_CATEGORY_COUNT
+
row
.
get
(
"bizOrgCode"
).
toString
()
+
"_"
+
SourceTypeEnum
.
EQUIPMENT
.
getCode
()
+
"_"
+
row
.
get
(
"categoryCode"
).
toString
();
return
SourcesStatisticsImpl
.
PREFIX_CATEGORY_COUNT
+
row
.
get
(
"bizOrgCode"
).
toString
()
+
"_"
+
SourceTypeEnum
.
EQUIPMENT
.
getCode
()
+
"_"
+
row
.
get
(
"categoryCode"
).
toString
();
}
}
@Override
public
Boolean
videoOnEquipmentSpecific
(
VideoOnEquipmentSpecificVo
videoOnEquipmentSpecificVo
)
{
public
Boolean
videoOnEquipmentSpecific
(
VideoOnEquipmentSpecificVo
videoOnEquipmentSpecificVo
)
{
Long
equipmentSpecificId
=
videoOnEquipmentSpecificVo
.
getEquipmentSpecificId
();
Long
equipmentSpecificId
=
videoOnEquipmentSpecificVo
.
getEquipmentSpecificId
();
List
<
Long
>
videoIdList
=
videoOnEquipmentSpecificVo
.
getVideoIdList
();
List
<
Long
>
videoIdList
=
videoOnEquipmentSpecificVo
.
getVideoIdList
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderAreaDataController.java
View file @
6999bdf0
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderAreaDataDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderAreaDataServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderAreaDataServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
io.swagger.annotations.Api
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderAreaDataDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
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.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
/**
/**
* 气瓶区域统计表
* 气瓶区域统计表
...
@@ -67,7 +65,7 @@ public class CylinderAreaDataController extends BaseController {
...
@@ -67,7 +65,7 @@ public class CylinderAreaDataController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除气瓶区域统计表"
,
notes
=
"根据sequenceNbr删除气瓶区域统计表"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除气瓶区域统计表"
,
notes
=
"根据sequenceNbr删除气瓶区域统计表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
cylinderAreaDataServiceImpl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
cylinderAreaDataServiceImpl
.
removeById
(
sequenceNbr
));
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderInfoController.java
View file @
6999bdf0
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderFillingRecordServiceImpl.java
View file @
6999bdf0
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledQueryDto
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderFillingRecordDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderFillingRecord
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderFillingRecord
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderFillingRecordMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderFillingRecordMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderFillingRecordService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderFillingRecordService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderFillingRecordDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Pag
e
;
import
org.typroject.tyboot.core.rdbms.service.BaseServic
e
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -20,7 +19,7 @@ import java.util.List;
...
@@ -20,7 +19,7 @@ import java.util.List;
* @date 2022-03-04
* @date 2022-03-04
*/
*/
@Service
@Service
public
class
CylinderFillingRecordServiceImpl
extends
BaseService
<
CylinderFillingRecordDto
,
CylinderFillingRecord
,
CylinderFillingRecordMapper
>
implements
ICylinderFillingRecordService
{
public
class
CylinderFillingRecordServiceImpl
extends
BaseService
<
CylinderFillingRecordDto
,
CylinderFillingRecord
,
CylinderFillingRecordMapper
>
implements
ICylinderFillingRecordService
{
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -32,7 +31,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -32,7 +31,7 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
CylinderFillingRecordDto
>
queryForCylinderFillingRecordList
()
{
public
List
<
CylinderFillingRecordDto
>
queryForCylinderFillingRecordList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
public
Double
queryIntegirtyByAppId
(
String
appId
)
{
public
Double
queryIntegirtyByAppId
(
String
appId
)
{
...
@@ -40,15 +39,26 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -40,15 +39,26 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
}
}
public
Double
getFillingSum
(
String
r
,
Date
time
)
{
public
Double
getFillingSum
(
String
r
,
Date
time
)
{
return
this
.
baseMapper
.
getFillingSum
(
r
,
time
);
return
this
.
baseMapper
.
getFillingSum
(
r
,
time
);
}
}
public
Page
<
CylinderFillingRecordDto
>
queryListByQueryDto
(
Page
<
CylinderFillingRecordDto
>
page
,
CylinderFillingRecordDto
cylinderFillingRecordDto
,
String
sortParam
,
String
sortRule
)
{
public
Page
<
CylinderFillingRecordDto
>
queryListByQueryDto
(
Page
<
CylinderFillingRecordDto
>
page
,
CylinderFillingRecordDto
cylinderFillingRecordDto
,
String
sortParam
,
String
sortRule
)
{
Page
<
List
<
CylinderFillingRecordDto
>>
list
=
this
.
baseMapper
.
queryListByQueryDto
(
page
,
cylinderFillingRecordDto
.
getFillingUnitName
(),
cylinderFillingRecordDto
.
getPropertyUnit
(),
cylinderFillingRecordDto
.
getFactoryNum
(),
Page
<
List
<
CylinderFillingRecordDto
>>
list
=
this
.
baseMapper
.
queryListByQueryDto
(
cylinderFillingRecordDto
.
getCylinderVariety
(),
cylinderFillingRecordDto
.
getQrCode
(),
cylinderFillingRecordDto
.
getElectronicLabelCode
(),
cylinderFillingRecordDto
.
getSequenceCode
(),
cylinderFillingRecordDto
.
getUnitInnerCode
(),
page
,
cylinderFillingRecordDto
.
getFillingStarttime
(),
cylinderFillingRecordDto
.
getFillingEndtime
(),
sortParam
,
sortRule
,
cylinderFillingRecordDto
.
getAppId
());
cylinderFillingRecordDto
.
getFillingUnitName
(),
cylinderFillingRecordDto
.
getPropertyUnit
(),
cylinderFillingRecordDto
.
getFactoryNum
(),
cylinderFillingRecordDto
.
getCylinderVariety
(),
cylinderFillingRecordDto
.
getQrCode
(),
cylinderFillingRecordDto
.
getElectronicLabelCode
(),
cylinderFillingRecordDto
.
getSequenceCode
(),
cylinderFillingRecordDto
.
getUnitInnerCode
(),
cylinderFillingRecordDto
.
getFillingStarttime
(),
cylinderFillingRecordDto
.
getFillingEndtime
(),
sortParam
,
sortRule
,
cylinderFillingRecordDto
.
getAppId
()
);
Page
<
CylinderFillingRecordDto
>
page1
=
new
Page
<>();
Page
<
CylinderFillingRecordDto
>
page1
=
new
Page
<>();
List
<
CylinderFillingRecordDto
>
resultDtoList
=
JSONArray
.
parseArray
(
JSONArray
.
toJSONString
(
list
.
getRecords
()),
CylinderFillingRecordDto
.
class
);
List
<
CylinderFillingRecordDto
>
resultDtoList
=
JSONArray
.
parseArray
(
JSONArray
.
toJSONString
(
list
.
getRecords
()),
CylinderFillingRecordDto
.
class
);
page1
.
setCurrent
(
page
.
getCurrent
());
page1
.
setCurrent
(
page
.
getCurrent
());
page1
.
setSize
(
page
.
getSize
());
page1
.
setSize
(
page
.
getSize
());
page1
.
setTotal
(
list
.
getTotal
());
page1
.
setTotal
(
list
.
getTotal
());
...
@@ -57,14 +67,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
...
@@ -57,14 +67,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
}
}
public
Double
getFillingSumByMonth
(
String
appId
,
Date
time
)
{
public
Double
getFillingSumByMonth
(
String
appId
,
Date
time
)
{
return
baseMapper
.
getFillingSumByMonth
(
appId
,
time
);
return
baseMapper
.
getFillingSumByMonth
(
appId
,
time
);
}
}
public
Integer
getFillingCountByMonth
(
String
appId
,
Date
time
)
{
public
Integer
getFillingCountByMonth
(
String
appId
,
Date
time
)
{
return
baseMapper
.
getFillingCountByMonth
(
appId
,
time
);
return
baseMapper
.
getFillingCountByMonth
(
appId
,
time
);
}
}
public
Double
getFillingSumByDate
(
String
appId
,
Date
time
)
{
public
Double
getFillingSumByDate
(
String
appId
,
Date
time
)
{
return
baseMapper
.
getFillingSumByDate
(
appId
,
time
);
return
baseMapper
.
getFillingSumByDate
(
appId
,
time
);
}
}
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
6999bdf0
This diff is collapsed.
Click to expand it.
pom.xml
View file @
6999bdf0
...
@@ -241,17 +241,23 @@
...
@@ -241,17 +241,23 @@
<dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-generator
</artifactId>
<artifactId>
mybatis-plus-generator
</artifactId>
<version>
3.
2
.0
</version>
<version>
3.
4
.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
3.
2
.0
</version>
<version>
3.
4
.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
2.1.0
</version>
<version>
2.1.2
</version>
<exclusions>
<exclusion>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.jpush.api
</groupId>
<groupId>
cn.jpush.api
</groupId>
...
@@ -271,28 +277,37 @@
...
@@ -271,28 +277,37 @@
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
<repositories>
<repositories>
<repository>
<!--
<repository>
<id>Releases</id>
<id>Releases</id>
<name>Releases</name>
<name>Releases</name>
<url>
http://36.46.149.14:8081
/nexus/content/repositories/releases/
</url>
<url>http://4v059425e3.zicp.vip:13535
/nexus/content/repositories/releases/</url>
</repository>
</repository>
<repository>
<repository>
<id>Snapshots</id>
<id>Snapshots</id>
<name>Snapshots</name>
<name>Snapshots</name>
<url>
http://36.46.149.14:8081
/nexus/content/repositories/snapshots/
</url>
<url>http://4v059425e3.zicp.vip:13535
/nexus/content/repositories/snapshots/</url>
</repository>
</repository>
<repository>
<repository>
<id>com.e-iceblue</id>
<id>com.e-iceblue</id>
<name>e-iceblue</name>
<name>e-iceblue</name>
<url>https://repo.e-iceblue.com/nexus/content/groups/public/</url>
<url>https://repo.e-iceblue.com/nexus/content/groups/public/</url>
</repository>-->
<repository>
<id>
Releases
</id>
<name>
Releases
</name>
<url>
http://36.46.149.14:8081/nexus/content/repositories/releases/
</url>
</repository>
<repository>
<id>
Snapshots
</id>
<name>
Snapshots
</name>
<url>
http://36.46.149.14:8081/nexus/content/repositories/snapshots/
</url>
</repository>
</repository>
</repositories>
</repositories>
<modules>
<modules>
<module>
amos-boot-module
</module>
<module>
amos-boot-module
</module>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-system-avic
</module>
<module>
amos-boot-system-tzs
</module>
<module>
amos-boot-system-tzs
</module>
<module>
amos-boot-system-jcs
</module>
<module>
amos-boot-system-jcs
</module>
<module>
amos-boot-system-knowledgebase
</module>
<module>
amos-boot-system-knowledgebase
</module>
...
...
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