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
a6335c89
Commit
a6335c89
authored
May 31, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
bc70d6b8
3cdadf57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
7 deletions
+40
-7
CylinderInfoMapper.java
...ot/module/cylinder/flc/api/mapper/CylinderInfoMapper.java
+16
-7
CylinderInfoMapper.xml
...nder-api/src/main/resources/mapper/CylinderInfoMapper.xml
+15
-0
CylinderInfoController.java
...e/cylinder/flc/biz/controller/CylinderInfoController.java
+9
-0
No files found.
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 @
a6335c89
...
...
@@ -19,28 +19,32 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
/**
* 查询根据公司查询气瓶数量以及过期气瓶数
*
* @param sequenceNbr
* @return
*/
Map
<
String
,
String
>
queryNumAndOutOfDateNum
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
Integer
getMonthInfoTotal
(
@Param
(
"regionCode"
)
String
regionCode
);
/**
* 获取上个月气瓶总量
*
* @return
*/
Integer
getLastMonthInfoTotal
(
@Param
(
"regionCode"
)
String
regionCode
);
/**
* 获取上上个月气瓶总量
*
* @return
*/
Integer
getMonthBeforeLastInfoTotal
(
@Param
(
"regionCode"
)
String
regionCode
);
/**
* 根据regionCode 获取气瓶数量
*
* @param regionCode
* @return
*/
...
...
@@ -49,17 +53,20 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Double
queryIntegirtyByAppId
(
@Param
(
"appId"
)
String
appId
);
Integer
getWarnNum
(
String
code
);
Integer
getMonthInfoTotalUnit
(
@Param
(
"appId"
)
String
appId
);
/**
* 获取上个月气瓶总量-APPID
*
* @return
*/
Integer
getLastMonthInfoTotalUnit
(
@Param
(
"appId"
)
String
appId
);
/**
* 获取上上个月气瓶总量-APPID
*
* @return
*/
Integer
getMonthBeforeLastInfoTotalUnit
(
@Param
(
"appId"
)
String
appId
);
...
...
@@ -70,14 +77,13 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Page
<
CylinderInfoDto
>
queryPageListByEarlyWarningLevel
(
Page
<
CylinderInfoDto
>
page
,
@Param
(
"earlyWarningLevel"
)
String
earlyWarningLevel
);
/**
* 查询行政区划下的所有气瓶
*
* @param regionCode
* @return
*/
List
<
CylinderInfoDto
>
listWithRegionCode
(
Integer
regionCode
);
List
<
CylinderInfoDto
>
listWithRegionCode
(
Integer
regionCode
);
Page
<
CylinderInfoDto
>
cyinderInfoList
(
Page
<
CylinderInfoDto
>
page
,
CylinderInfoDto
cylinderInfoDto
,
String
sort
,
List
<
String
>
appids
);
...
...
@@ -88,14 +94,17 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Integer
getInfoTotal
();
void
updateEsCylinderInfoStatus
(
@Param
(
"ids"
)
List
<
String
>
ids
);
void
updateEsCylinderInfoStatus
(
@Param
(
"ids"
)
List
<
String
>
ids
);
Integer
saveOrUpdateBatch
(
@Param
(
"list"
)
List
<
CylinderInfo
>
list
);
Page
<
Map
<
String
,
Object
>>
timeOutList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"regionCode"
)
String
regionCode
);
Page
<
Map
<
String
,
Object
>>
timeOutList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"regionCode"
)
String
regionCode
);
Page
<
Map
<
String
,
Object
>>
licenceList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"companyId"
)
String
companyId
);
Page
<
Map
<
String
,
Object
>>
licenceList
(
@Param
(
"page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"companyId"
)
String
companyId
);
int
countNumber
(
@Param
(
"status"
)
String
status
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"regionCode"
)
String
regionCode
);
Map
<
String
,
Object
>
countFillingTimesAndQuantityByCompany
(
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
);
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
a6335c89
...
...
@@ -387,6 +387,21 @@
</where>
</select>
<select
id=
"countFillingTimesAndQuantityByCompany"
resultType=
"java.util.Map"
>
SELECT COUNT(1) AS fillingTimes, SUM(filling_quantity) AS fillingQuantity
FROM tz_cylinder_filling_record AS tcfr
<where>
<if
test=
"companyId != null and companyId != ''"
>
tcfr."app_id" = #{companyId}
</if>
<if
test=
"startTime != null"
>
AND DATE_FORMAT(tcfr."filling_starttime",'%Y-%m-%d')
<![CDATA[>=]]>
#{startTime}
</if>
<if
test=
"endTime != null"
>
AND DATE_FORMAT(tcfr."filling_endtime",'%Y-%m-%d')
<![CDATA[<=]]>
#{endTime}
</if>
</where>
</select>
<select
id=
"countNumber"
resultType=
"java.lang.Integer"
>
SELECT count(DISTINCT(onlyCode))
FROM(
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/controller/CylinderInfoController.java
View file @
a6335c89
...
...
@@ -1329,4 +1329,13 @@ public class CylinderInfoController extends BaseController {
map
.
put
(
"status"
,
number
);
return
ResponseHelper
.
buildResponse
(
map
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"某个企业充装次数及累计充装量统计"
)
@GetMapping
(
value
=
"/countFillingTimesAndQuantityByCompany"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
countFillingTimesAndQuantityByCompany
(
@RequestParam
(
value
=
"companyId"
)
String
companyId
,
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
)
{
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
getBaseMapper
().
countFillingTimesAndQuantityByCompany
(
companyId
,
startTime
,
endTime
));
}
}
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