Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
aee1cf10
Commit
aee1cf10
authored
Jul 01, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用归集,费用归集详情添加字段
parent
eeacca29
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
126 additions
and
91 deletions
+126
-91
HGCW051.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW051.java
+0
-0
HGCW052.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW052.java
+0
-0
HGCW051.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
+45
-27
HGCW052.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW052.xml
+81
-64
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW051.java
View file @
aee1cf10
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW052.java
View file @
aee1cf10
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
View file @
aee1cf10
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-0
6-26 15:09:24
Generate time : 2024-0
7-01 10:27:27
Version : 1.0
Version : 1.0
schema : hggp
schema : hggp
tableName : HGCW051
tableName : HGCW051
...
@@ -16,7 +16,9 @@
...
@@ -16,7 +16,9 @@
COMPANY_NAME VARCHAR,
COMPANY_NAME VARCHAR,
YEAR VARCHAR NOT NULL,
YEAR VARCHAR NOT NULL,
MONTH VARCHAR NOT NULL,
MONTH VARCHAR NOT NULL,
AMOUNT DECIMAL
AMOUNT DECIMAL,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
-->
-->
<sqlMap
namespace=
"HGCW051"
>
<sqlMap
namespace=
"HGCW051"
>
...
@@ -60,6 +62,12 @@
...
@@ -60,6 +62,12 @@
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
AMOUNT = #amount#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"account"
>
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
@@ -129,24 +137,32 @@
...
@@ -129,24 +137,32 @@
<isNotEmpty prepend=" AND " property="amount">
<isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount#
AMOUNT = #amount#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCW051 (ID,
INSERT INTO ${hggpSchema}.HGCW051 (ID,
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建�称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改�称 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DELETE_FLAG,
<!-- 0-æœªåˆ é™¤ï¼Œ1-å·²åˆ é™¤ -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- å…¬å�¸ç¼–ç � -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公��称 -->
COMPANY_NAME,
<!-- 公司名称 -->
YEAR,
<!-- 年份 -->
YEAR,
<!-- 年份 -->
MONTH,
<!-- 月份 -->
MONTH,
<!-- 月份 -->
AMOUNT
<!-- 费用金� -->
AMOUNT,
<!-- 费用金额 -->
ACCOUNT,
<!-- 企业编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#
, #account#, #depCode#
)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -157,18 +173,20 @@
...
@@ -157,18 +173,20 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCW051
UPDATE ${hggpSchema}.HGCW051
SET
SET
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建�称 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改�称 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-æœªåˆ é™¤ï¼Œ1-å·²åˆ é™¤ -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#,
<!-- å…¬å�¸ç¼–ç � -->
COMPANY_CODE = #companyCode#,
<!-- 公司编码 -->
COMPANY_NAME = #companyName#,
<!-- 公��称 -->
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
YEAR = #year#,
<!-- 年份 -->
YEAR = #year#,
<!-- 年份 -->
MONTH = #month#,
<!-- 月份 -->
MONTH = #month#,
<!-- 月份 -->
AMOUNT = #amount#
<!-- 费用金� -->
AMOUNT = #amount#,
<!-- 费用金额 -->
ACCOUNT = #account#,
<!-- 企业编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW052.xml
View file @
aee1cf10
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-0
6-26 15:09:39
Generate time : 2024-0
7-01 10:27:33
Version : 1.0
Version : 1.0
schema : hggp
schema : hggp
tableName : HGCW052
tableName : HGCW052
...
@@ -22,7 +22,9 @@
...
@@ -22,7 +22,9 @@
COST_ITEM VARCHAR,
COST_ITEM VARCHAR,
ITEM_NAME VARCHAR,
ITEM_NAME VARCHAR,
ITEM_CODE VARCHAR,
ITEM_CODE VARCHAR,
IS_SHARE VARCHAR
IS_SHARE VARCHAR,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
-->
-->
<sqlMap
namespace=
"HGCW052"
>
<sqlMap
namespace=
"HGCW052"
>
...
@@ -84,32 +86,40 @@
...
@@ -84,32 +86,40 @@
<isNotEmpty
prepend=
" AND "
property=
"isShare"
>
<isNotEmpty
prepend=
" AND "
property=
"isShare"
>
IS_SHARE = #isShare#
IS_SHARE = #isShare#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"account"
>
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW052"
>
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW052"
>
SELECT
SELECT
ID as "id",
ID as "id",
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建�称 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改�称 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-æœªåˆ é™¤ï¼Œ1-å·²åˆ é™¤ -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- å…¬å�¸ç¼–ç � -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公��称 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
YEAR as "year",
<!-- 年份 -->
YEAR as "year",
<!-- 年份 -->
MONTH as "month",
<!-- 月份 -->
MONTH as "month",
<!-- 月份 -->
AMOUNT as "amount",
<!-- 费用金� -->
AMOUNT as "amount",
<!-- 费用金额 -->
HGCW051_ID as "hgcw051Id",
<!-- 主表ID -->
HGCW051_ID as "hgcw051Id",
<!-- 主表ID -->
COST_TYPE as "costType",
<!-- 费用类型 -->
COST_TYPE as "costType",
<!-- 费用类型 -->
COST_ITEM as "costItem",
<!-- 费用项 -->
COST_ITEM as "costItem",
<!-- 费用项 -->
ITEM_NAME as "itemName",
<!-- 项目�称 -->
ITEM_NAME as "itemName",
<!-- 项目名称 -->
ITEM_CODE as "itemCode",
<!-- 项目编� -->
ITEM_CODE as "itemCode",
<!-- 项目编号 -->
IS_SHARE as "isShare"
<!-- 是�分摊费用 -->
IS_SHARE as "isShare",
<!-- 是否分摊费用 -->
ACCOUNT as "account",
<!-- 企业编码 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW052 WHERE 1=1
FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -140,7 +150,7 @@
...
@@ -140,7 +150,7 @@
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCW052 WHERE 1=1
SELECT COUNT(*) FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<!--
...
@@ -201,61 +211,68 @@
...
@@ -201,61 +211,68 @@
<isNotEmpty prepend=" AND " property="isShare">
<isNotEmpty prepend=" AND " property="isShare">
IS_SHARE = #isShare#
IS_SHARE = #isShare#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCW052 (ID,
INSERT INTO ${hggpSchema}.HGCW052 (ID,
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建�称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改�称 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DELETE_FLAG,
<!-- 0-æœªåˆ é™¤ï¼Œ1-å·²åˆ é™¤ -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- å…¬å�¸ç¼–ç � -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公��称 -->
COMPANY_NAME,
<!-- 公司名称 -->
YEAR,
<!-- 年份 -->
YEAR,
<!-- 年份 -->
MONTH,
<!-- 月份 -->
MONTH,
<!-- 月份 -->
AMOUNT,
<!-- 费用金� -->
AMOUNT,
<!-- 费用金额 -->
HGCW051_ID,
<!-- 主表ID -->
HGCW051_ID,
<!-- 主表ID -->
COST_TYPE,
<!-- 费用类型 -->
COST_TYPE,
<!-- 费用类型 -->
COST_ITEM,
<!-- 费用项 -->
COST_ITEM,
<!-- 费用项 -->
ITEM_NAME,
<!-- 项目�称 -->
ITEM_NAME,
<!-- 项目名称 -->
ITEM_CODE,
<!-- 项目编� -->
ITEM_CODE,
<!-- 项目编号 -->
IS_SHARE
<!-- 是�分摊费用 -->
IS_SHARE,
<!-- 是否分摊费用 -->
ACCOUNT,
<!-- 企业编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#,
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#, #itemName#, #itemCode#, #isShare#, #account#, #depCode#)
#deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#,
#itemName#, #itemCode#, #isShare#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE
DELETE FROM ${hggpSchema}.HGCW052 WHERE
FROM ${hggpSchema}.HGCW052
ID = #id#
WHERE ID = #id#
</delete>
</delete>
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCW052
UPDATE ${hggpSchema}.HGCW052
SET
SET
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建�称 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改�称 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-æœªåˆ é™¤ï¼Œ1-å·²åˆ é™¤ -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#,
<!-- å…¬å�¸ç¼–ç � -->
COMPANY_CODE = #companyCode#,
<!-- 公司编码 -->
COMPANY_NAME = #companyName#,
<!-- 公��称 -->
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
YEAR = #year#,
<!-- 年份 -->
YEAR = #year#,
<!-- 年份 -->
MONTH = #month#,
<!-- 月份 -->
MONTH = #month#,
<!-- 月份 -->
AMOUNT = #amount#,
<!-- 费用金� -->
AMOUNT = #amount#,
<!-- 费用金额 -->
HGCW051_ID = #hgcw051Id#,
<!-- 主表ID -->
HGCW051_ID = #hgcw051Id#,
<!-- 主表ID -->
COST_TYPE = #costType#,
<!-- 费用类型 -->
COST_TYPE = #costType#,
<!-- 费用类型 -->
COST_ITEM = #costItem#,
<!-- 费用项 -->
COST_ITEM = #costItem#,
<!-- 费用项 -->
ITEM_NAME = #itemName#,
<!-- 项目�称 -->
ITEM_NAME = #itemName#,
<!-- 项目名称 -->
ITEM_CODE = #itemCode#,
<!-- 项目编� -->
ITEM_CODE = #itemCode#,
<!-- 项目编号 -->
IS_SHARE = #isShare#
<!-- 是�分摊费用 -->
IS_SHARE = #isShare#,
<!-- 是否分摊费用 -->
ACCOUNT = #account#,
<!-- 企业编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
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