Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
Overview
Overview
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
isc-v3.1-tmp
isc-core
Commits
0f4170d7
Commit
0f4170d7
authored
Nov 02, 2024
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多实体适配
parent
7254572e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
FecMapper.java
...e/src/main/java/com/brilliance/isc/mda/dao/FecMapper.java
+2
-0
fecmapper.xml
isc-common-core/src/main/resources/mapper/fecmapper.xml
+7
-0
feemapper.xml
isc-common-core/src/main/resources/mapper/feemapper.xml
+1
-2
sptmapper.xml
isc-common-core/src/main/resources/mapper/sptmapper.xml
+1
-0
Utils.java
...e/src/main/java/com/brilliance/isc/common/util/Utils.java
+1
-1
No files found.
isc-common-core/src/main/java/com/brilliance/isc/mda/dao/FecMapper.java
View file @
0f4170d7
...
@@ -41,6 +41,8 @@ public interface FecMapper {
...
@@ -41,6 +41,8 @@ public interface FecMapper {
List
<
Fec
>
selectFecByObjtypAndObjinrAndFeeinrAndFeepri
(
@Param
(
"objtyp"
)
String
objtyp
,
@Param
(
"objinr"
)
String
objinr
,
@Param
(
"feeinr"
)
String
feeinr
,
@Param
(
"feepri"
)
String
feepri
);
List
<
Fec
>
selectFecByObjtypAndObjinrAndFeeinrAndFeepri
(
@Param
(
"objtyp"
)
String
objtyp
,
@Param
(
"objinr"
)
String
objinr
,
@Param
(
"feeinr"
)
String
feeinr
,
@Param
(
"feepri"
)
String
feepri
);
List
<
Fec
>
selectFecByConditionSql
(
@Param
(
value
=
"conditionSql"
)
String
conditionSql
);
List
<
Fec
>
selectFecByConditionSql
(
@Param
(
value
=
"conditionSql"
)
String
conditionSql
);
List
<
Fec
>
selectFecByConditionSqlAndParams
(
Map
<
String
,
Object
>
sqlAndParams
);
FecVo
queryById
(
@Param
(
"inr"
)
String
inr
);
FecVo
queryById
(
@Param
(
"inr"
)
String
inr
);
FecVo
queryById1
(
@Param
(
"inr"
)
String
inr
);
FecVo
queryById1
(
@Param
(
"inr"
)
String
inr
);
...
...
isc-common-core/src/main/resources/mapper/fecmapper.xml
View file @
0f4170d7
...
@@ -641,6 +641,13 @@
...
@@ -641,6 +641,13 @@
${conditionSql}
${conditionSql}
</select>
</select>
<select
id=
"selectFecByConditionSqlAndParams"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from fec
${conditionSql}
</select>
<select
id=
"queryById"
resultType=
"com.brilliance.isc.vo.manager.FecVo"
>
<select
id=
"queryById"
resultType=
"com.brilliance.isc.vo.manager.FecVo"
>
select B.INR inr, B.FEEINR feeinr, B.FEEPRI feepri, B.OBJTYP objtyp, B.OBJINR objinr, date_format(B.BEGDAT,'%Y-%m-%d') begdat, date_format(B.ENDDAT,'%Y-%m-%d')
select B.INR inr, B.FEEINR feeinr, B.FEEPRI feepri, B.OBJTYP objtyp, B.OBJINR objinr, date_format(B.BEGDAT,'%Y-%m-%d') begdat, date_format(B.ENDDAT,'%Y-%m-%d')
enddat, B.CALCBS calcbs, B.CALFCC calfcc, B.LOWAMT lowamt, B.HIGAMT higamt, B.MAXCUR maxcur, B.MAXAMT maxamt,
enddat, B.CALCBS calcbs, B.CALFCC calfcc, B.LOWAMT lowamt, B.HIGAMT higamt, B.MAXCUR maxcur, B.MAXAMT maxamt,
...
...
isc-common-core/src/main/resources/mapper/feemapper.xml
View file @
0f4170d7
...
@@ -38,13 +38,12 @@
...
@@ -38,13 +38,12 @@
where inr = #{inr,jdbcType=VARCHAR}
where inr = #{inr,jdbcType=VARCHAR}
</select>
</select>
<!-- TODO 多实体改造 -->
<select
id=
"selectByCod"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByCod"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from fee
from fee
where cod = #{cod,jdbcType=VARCHAR}
where cod = #{cod,jdbcType=VARCHAR}
and etgextkey = #{_etgextkey}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
>
<delete
id=
"deleteByPrimaryKey"
>
...
...
isc-common-core/src/main/resources/mapper/sptmapper.xml
View file @
0f4170d7
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!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.brilliance.isc.mda.dao.SptMapper"
>
<mapper
namespace=
"com.brilliance.isc.mda.dao.SptMapper"
>
com.brilliance.isc.mda.dao.SptMapper
<resultMap
id=
"BaseResultMap"
type=
"com.brilliance.isc.bo.Spt"
>
<resultMap
id=
"BaseResultMap"
type=
"com.brilliance.isc.bo.Spt"
>
<result
property=
"inr"
column=
"inr"
jdbcType=
"VARCHAR"
/>
<result
property=
"inr"
column=
"inr"
jdbcType=
"VARCHAR"
/>
...
...
isc-common-service/src/main/java/com/brilliance/isc/common/util/Utils.java
View file @
0f4170d7
...
@@ -425,7 +425,7 @@ public class Utils {
...
@@ -425,7 +425,7 @@ public class Utils {
// In both cases the rest of the command has to be put into brakets.
// In both cases the rest of the command has to be put into brakets.
if
(
argWhrFlg
)
{
if
(
argWhrFlg
)
{
String
upsql
=
argSql
.
toUpperCase
();
String
upsql
=
argSql
.
toUpperCase
();
sql
=
"WHERE "
+
argCon
+
" and ( "
+
argSql
.
substring
(
upsql
.
lastI
ndexOf
(
"WHERE"
)+
5
)
+
" )"
;
sql
=
"WHERE "
+
argCon
+
" and ( "
+
argSql
.
substring
(
upsql
.
i
ndexOf
(
"WHERE"
)+
5
)
+
" )"
;
}
else
{
}
else
{
if
(
MdaUtils
.
isEmpty
(
argSql
))
{
if
(
MdaUtils
.
isEmpty
(
argSql
))
{
sql
=
"WHERE "
+
argCon
;
sql
=
"WHERE "
+
argCon
;
...
...
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