Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
3c602cb2
Commit
3c602cb2
authored
Jul 02, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加系统接入模块
parent
e6506519
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
7 deletions
+29
-7
bill-manager/src/main/resources/sqlmap/module/pj/PjEvaluateStatMapperExt.xml
...in/resources/sqlmap/module/pj/PjEvaluateStatMapperExt.xml
+28
-6
bill-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+1
-1
No files found.
bill-manager/src/main/resources/sqlmap/module/pj/PjEvaluateStatMapperExt.xml
View file @
3c602cb2
...
...
@@ -26,16 +26,38 @@
where
<trim
prefixOverrides=
"and"
prefix=
""
>
<include
refid=
"_condition_"
/>
<i
f
test=
"conditionParamRef.containsKey('timeStart') and conditionParamRef.timeStart != null and conditionParamRef.timeStart!=''
"
>
and STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')
<![CDATA[ >= ]]>
STR_TO_DATE(${_conditionParam_}.timeStart},'%Y-%m-%d')
</if
>
<
if
test=
"conditionParamRef.containsKey('timeEnd') and conditionParamRef.timeEnd != null and conditionParamRef.timeEnd!=''"
>
and STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')
<![CDATA[ <= ]]>
STR_TO_DATE(${_conditionParam_}.createTimeEnd},'%Y-%m-%d')
</if>
<i
nclude
refid=
"_condition_param_
"
>
<property
name=
"_conditionParam_"
value=
"condition"
/>
<property
name=
"_conditionType_"
value=
"and"
/
>
<
/include
>
<bind
name=
"conditionParamRef"
value=
"${_conditionParam_}"
/>
</trim>
</trim>
<include
refid=
"_group_by_"
/>
<include
refid=
"_orderCols_"
/>
</select>
<!-- 条件映射 -->
<sql
id=
"_condition_two_"
>
<if
test=
"condition != null and !condition.isEmpty()"
>
<!-- 条件映射-普通条件 -->
<include
refid=
"_condition_param_two_"
>
<property
name=
"_conditionParam_"
value=
"condition"
/>
<property
name=
"_conditionType_"
value=
"and"
/>
</include>
</if>
</sql>
<sql
id=
"_condition_param_two_"
>
<bind
name=
"conditionParamRef"
value=
"${_conditionParam_}"
/>
<if
test=
"conditionParamRef.containsKey('timeStart') and conditionParamRef.timeStart != null and conditionParamRef.timeStart!=''"
>
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')
<![CDATA[ >= ]]>
STR_TO_DATE(${_conditionParam_}.timeStart},'%Y-%m-%d')
</if>
<if
test=
"conditionParamRef.containsKey('timeEnd') and conditionParamRef.timeEnd != null and conditionParamRef.timeEnd!=''"
>
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')
<![CDATA[ <= ]]>
STR_TO_DATE(${_conditionParam_}.timeEnd},'%Y-%m-%d')
</if>
</sql>
</mapper>
\ No newline at end of file
bill-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
3c602cb2
...
...
@@ -4,7 +4,7 @@
"baseLogin"
:
"http://127.0.0.1:18222/m"
},
"test"
:
{
"baseUrl"
:
"http://
192.168.0.98:11019
/bill"
,
"baseUrl"
:
"http://
8.136.255.30:11078
/bill"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
...
...
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