Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
527db5f1
Commit
527db5f1
authored
Sep 19, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 模拟数据测试 液化石油气-气瓶档案,充装记录,车辆信息 外部接口。
parent
9a5b46db
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
152 deletions
+96
-152
lpgGasController.java
...b/controller/externaldocking/lpggas/lpgGasController.java
+59
-56
DESEncoder.java
.../main/java/com/zehong/web/controller/tool/DESEncoder.java
+4
-75
application-dev.yml
zh-baseversion-admin/src/main/resources/application-dev.yml
+1
-1
application-prd.yml
zh-baseversion-admin/src/main/resources/application-prd.yml
+1
-1
application-test.yml
zh-baseversion-admin/src/main/resources/application-test.yml
+1
-1
application.yml
zh-baseversion-admin/src/main/resources/application.yml
+0
-3
TLpgVehicleInfo.java
...c/main/java/com/zehong/system/domain/TLpgVehicleInfo.java
+15
-0
TLpgAirChargeFilesMapper.xml
...main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
+9
-9
TLpgGasBottleFilesMapper.xml
...main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
+5
-5
TLpgVehicleInfoMapper.xml
...rc/main/resources/mapper/system/TLpgVehicleInfoMapper.xml
+1
-1
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/externaldocking/lpggas/lpgGasController.java
View file @
527db5f1
This diff is collapsed.
Click to expand it.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/tool/DESEncoder.java
View file @
527db5f1
...
...
@@ -158,81 +158,10 @@ public class DESEncoder {
// System.out.println(DESEncoder.encrypt(skcs1,"23546324"));
String
lpggasdata
=
"[\n"
+
" {\n"
+
" \"nchkDate\": \"2024-12-18\",\n"
+
" \"discardDate\": \"2024-12-20\",\n"
+
" \"wpressure\": \"15.96\",\n"
+
" \"thickness\": \"15.46\",\n"
+
" \"holeCode\": \"孔洞码-接口来的-01\",\n"
+
" \"qrcode\": \"111111\",\n"
+
" \"regCode\": \"登记证号-接口来的-01\",\n"
+
" \"selfWeight\": \"15.98\",\n"
+
" \"medium\": \"充装介质-接口来的-01\",\n"
+
" \"bottleStorageType\": \"存储类型(气相/液相)-接口来的-01\",\n"
+
" \"pchkDate\": \"2024-12-17\",\n"
+
" \"batchImage\": \"一串base64数据\",\n"
+
" \"safeJudgeDate\": \"2024-12-21\",\n"
+
" \"checkImage\": \"一串base64数据\",\n"
+
" \"appId\": \"电子标签-接口来的-01\",\n"
+
" \"makeInfo\": \"生产(制造单位)\",\n"
+
" \"gpressure\": \"12.56\",\n"
+
" \"makeDate\": \"2024-12-16\",\n"
+
" \"botSpecName\": \"钢瓶规格名称-接口来的-01\",\n"
+
" \"payImage\": \"一串base64数据\",\n"
+
" \"equType\": \"设备类型-接口来的-01\",\n"
+
" \"inspectionLabel\": \"检验标牌(有/无)-接口来的-01\",\n"
+
" \"botImage\": \"一串base64数据\",\n"
+
" \"buildUser\": \"使用单位-接口来的-01\",\n"
+
" \"pressure\": \"12.5\",\n"
+
" \"productDate\": \"2024-12-19\",\n"
+
" \"equNo\": \"产品编号-接口来的-01\",\n"
+
" \"permitNo\": \"气瓶许可证号-接口来的-01\",\n"
+
" \"volume\": \"30.6\",\n"
+
" \"inspectedTimes\": \"14\",\n"
+
" \"valveManuFacturer\": \"阀厂家-接口来的-01\",\n"
+
" \"thirdPartyLabel\": \"第三方标签-接口来的-01\",\n"
+
" \"valveName\": \"阀类型名称-接口来的-01\",\n"
+
" \"deviceImage\": \"一串base64数据\",\n"
+
" \"selfId\": \"单位内编号-接口来的-01\"\n"
+
" },\n"
+
" {\n"
+
" \"nchkDate\": \"2024-12-23\",\n"
+
" \"discardDate\": \"2024-12-25\",\n"
+
" \"wpressure\": \"15.96\",\n"
+
" \"thickness\": \"15.46\",\n"
+
" \"holeCode\": \"孔洞码-接口来的-02\",\n"
+
" \"qrcode\": \"222222\",\n"
+
" \"regCode\": \"登记证号-接口来的-02\",\n"
+
" \"selfWeight\": \"15.98\",\n"
+
" \"medium\": \"充装介质-接口来的-02\",\n"
+
" \"bottleStorageType\": \"存储类型(气相/液相)-接口来的-02\",\n"
+
" \"pchkDate\": \"2024-12-22\",\n"
+
" \"batchImage\": \"一串base64数据\",\n"
+
" \"safeJudgeDate\": \"2024-12-26\",\n"
+
" \"checkImage\": \"一串base64数据\",\n"
+
" \"appId\": \"电子标签-接口来的-02\",\n"
+
" \"makeInfo\": \"生产(制造单位)\",\n"
+
" \"gpressure\": \"14.56\",\n"
+
" \"makeDate\": \"2024-12-21\",\n"
+
" \"botSpecName\": \"钢瓶规格名称-接口来的-02\",\n"
+
" \"payImage\": \"一串base64数据\",\n"
+
" \"equType\": \"设备类型-接口来的-02\",\n"
+
" \"inspectionLabel\": \"检验标牌(有/无)-接口来的-02\",\n"
+
" \"botImage\": \"一串base64数据\",\n"
+
" \"buildUser\": \"使用单位-接口来的-02\",\n"
+
" \"pressure\": \"12.5\",\n"
+
" \"productDate\": \"2024-12-24\",\n"
+
" \"equNo\": \"产品编号-接口来的-02\",\n"
+
" \"permitNo\": \"气瓶许可证号-接口来的-02\",\n"
+
" \"volume\": \"30.6\",\n"
+
" \"inspectedTimes\": \"14\",\n"
+
" \"valveManuFacturer\": \"阀厂家-接口来的-02\",\n"
+
" \"thirdPartyLabel\": \"第三方标签-接口来的-02\",\n"
+
" \"valveName\": \"阀类型名称-接口来的-02\",\n"
+
" \"deviceImage\": \"一串base64数据\",\n"
+
" \"selfId\": \"单位内编号-接口来的-02\"\n"
+
" }\n"
+
"]\n"
;
"{\"onState\":\"1\",\"vehicleLimt\":\"车辆限乘01\",\"vehicleLoad\":\"车辆载重01\",\"carNum\":\"SE123\",\"vehicleCode\":\"代码01\",\"brandModel\":\"品牌型号01\",\"vehicleInspect\":\"车辆检查信息01\",\"vehicleUser\":\"使用人01\",\"carNumber\":\"车辆编号01\",\"phone\":\"888888888\",\"personLiable\":\"责任人88888888\",\"stationName\":\"储备站88888888\",\"vehicleSize\":\"车辆大小01\",\"vehicleType\":\"车辆类型01\",\"remarks\":\"备注01\"},\n"
+
"{\"onState\":\"0\",\"vehicleLimt\":\"车辆限乘02\",\"vehicleLoad\":\"车辆载重02\",\"carNum\":\"SE456\",\"vehicleCode\":\"代码02\",\"brandModel\":\"品牌型号02\",\"vehicleInspect\":\"车辆检查信息02\",\"vehicleUser\":\"使用人02\",\"carNumber\":\"车辆编号02\",\"phone\":\"联系电话02\",\"personLiable\":\"责任人02\",\"stationName\":\"储备站02\",\"vehicleSize\":\"车辆大小02\",\"vehicleType\":\"车辆类型02\",\"remarks\":\"备注02\"}\n"
+
"{\"onState\":\"1\",\"vehicleLimt\":\"车辆限乘01\",\"vehicleLoad\":\"车辆载重01\",\"carNum\":\"SE123\",\"vehicleCode\":\"代码01\",\"brandModel\":\"品牌型号01\",\"vehicleInspect\":\"车辆检查信息01\",\"vehicleUser\":\"使用人01\",\"carNumber\":\"车辆编号01\",\"phone\":\"888888888\",\"personLiable\":\"责任人88888888\",\"stationName\":\"储备站88888888\",\"vehicleSize\":\"车辆大小01\",\"vehicleType\":\"车辆类型01\",\"remarks\":\"备注01\"},\n"
+
"]"
;
JSONArray
objects
=
JSON
.
parseArray
(
lpggasdata
);
System
.
out
.
println
(
objects
);
...
...
zh-baseversion-admin/src/main/resources/application-dev.yml
View file @
527db5f1
...
...
@@ -6,7 +6,7 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://localhost:3306/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://localhost:3306/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
&allowMultiQueries=true
username
:
root
password
:
Zh@123456
# 从库数据源
...
...
zh-baseversion-admin/src/main/resources/application-prd.yml
View file @
527db5f1
...
...
@@ -6,7 +6,7 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://localhost:3309/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://localhost:3309/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
&allowMultiQueries=true
username
:
ze_base_db
password
:
6JfrWG6Lcd4kWnfb
# 从库数据源
...
...
zh-baseversion-admin/src/main/resources/application-test.yml
View file @
527db5f1
...
...
@@ -6,7 +6,7 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://36.138.180.82:3309/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://36.138.180.82:3309/ze_base_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
&allowMultiQueries=true
username
:
ze_base_db
password
:
6JfrWG6Lcd4kWnfb
# 从库数据源
...
...
zh-baseversion-admin/src/main/resources/application.yml
View file @
527db5f1
...
...
@@ -80,6 +80,3 @@ xss:
excludes
:
/system/notice/*
# 匹配链接
urlPatterns
:
/system/*,/monitor/*,/tool/*
# 第三方对接 液化气 des 加解密 编码
externalDockingLpgGas
:
zhy@123.
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgVehicleInfo.java
View file @
527db5f1
...
...
@@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
import
java.util.Objects
;
/**
* 液化石油车辆信息对象 t_lpg_vehicle_info
*
...
...
@@ -276,6 +278,19 @@ public class TLpgVehicleInfo extends BaseEntity
return
remarks
;
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
this
==
obj
)
return
true
;
if
(
obj
==
null
||
getClass
()
!=
obj
.
getClass
())
return
false
;
TLpgVehicleInfo
lpgVehicleInfo
=
(
TLpgVehicleInfo
)
obj
;
return
Objects
.
equals
(
carNum
,
lpgVehicleInfo
.
getCarNum
());
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
carNum
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
View file @
527db5f1
...
...
@@ -84,16 +84,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
UPDATE t_lpg_air_charge_files
<set>
f_station_name = #{item.stationName},
f_vase_code = #{item.v
ehicl
eCode},
f_scale_num = #{item.
brandModel
},
f_fill_statr_time = #{item.
vehicleTyp
e},
f_fill_end_time = #{item.
vehicleLoad
},
f_set_weight = #{item.
vehicleSize
},
f_wt_net = #{item.
vehicleLim
t},
f_set_bottle_weight = #{item.
vehicleInspec
t},
f_vase_code = #{item.v
as
eCode},
f_scale_num = #{item.
scaleNum
},
f_fill_statr_time = #{item.
fillStatrTim
e},
f_fill_end_time = #{item.
fillEndTime
},
f_set_weight = #{item.
setWeight
},
f_wt_net = #{item.
wtNe
t},
f_set_bottle_weight = #{item.
setBottleWeigh
t},
f_bottle_weight = #{item.bottleWeight},
f_wt_gross = #{item.
onState
},
f_oprate_name = #{item.
vehicleUser
},
f_wt_gross = #{item.
wtGross
},
f_oprate_name = #{item.
oprateName
},
</set>
WHERE f_bar_code = #{item.barCode} and f_gz_id = #{item.gzId} and enterprise_id = #{item.enterpriseId}
</foreach>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
View file @
527db5f1
...
...
@@ -144,10 +144,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
";"
>
UPDATE t_lpg_gas_bottle_files
<set>
f_reg_code = #{item.regCode},
f_equ_no = #{item.equNo},
f_equ_type = #{item.equType},
f_medium = #{item.medium},
f_reg_code = #{item.regCode
,jdbcType=VARCHAR
},
f_equ_no = #{item.equNo
,jdbcType=VARCHAR
},
f_equ_type = #{item.equType
,jdbcType=VARCHAR
},
f_medium = #{item.medium
,jdbcType=VARCHAR
},
f_make_date = #{item.makeDate},
f_make_info = #{item.makeInfo},
f_self_id = #{item.selfId},
...
...
@@ -184,7 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
f_check_image = #{item.checkImage},
f_bot_image = #{item.botImage},
</set>
WHERE f_
gas_bottle_files_id = #{item.gasBottleFiles
Id}
WHERE f_
q_rcode = #{item.qrcode} and enterprise_id = #{item.enterprise
Id}
</foreach>
</update>
<insert
id=
"insertBatch"
parameterType=
"list"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgVehicleInfoMapper.xml
View file @
527db5f1
...
...
@@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"queryByCarNumsAndEnterpriseId"
resultMap=
"TLpgVehicleInfoResult"
>
<include
refid=
"selectTLpgVehicleInfoVo"
/>
where
enterprise_id = #{enterpriseId} and carN
um in
where
vehicle.enterprise_id = #{enterpriseId} and vehicle.car_n
um in
<foreach
collection=
"carNums"
index=
"i"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
...
...
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