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
e8f1be20
Commit
e8f1be20
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
372b5a2c
ce27569a
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1607 additions
and
65 deletions
+1607
-65
HGCW055.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW055.java
+470
-0
ServiceHGCW002A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
+12
-28
ServiceHGCW006A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW006A.java
+32
-9
ServiceHGCW055.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW055.java
+185
-0
HGCW001.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW001.xml
+40
-0
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+21
-0
HGCW051.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
+7
-7
HGCW055.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW055.xml
+216
-0
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+28
-0
HGKC001.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC001.xml
+23
-0
HGKC003.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
+70
-0
HGKC004.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004.xml
+20
-0
HGKC006.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006.xml
+60
-0
HGKC007.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007.xml
+61
-0
HGKC008.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC008.xml
+40
-0
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+65
-1
HGCW006A.js
src/main/webapp/HG/CW/HGCW006A.js
+32
-0
HGCW006A.jsp
src/main/webapp/HG/CW/HGCW006A.jsp
+11
-1
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+54
-15
HGCW010.jsp
src/main/webapp/HG/CW/HGCW010.jsp
+4
-1
HGCW010A.jsp
src/main/webapp/HG/CW/HGCW010A.jsp
+1
-1
HGCW010B.jsp
src/main/webapp/HG/CW/HGCW010B.jsp
+1
-1
HGCW010C.jsp
src/main/webapp/HG/CW/HGCW010C.jsp
+1
-1
HGCW055.js
src/main/webapp/HG/CW/HGCW055.js
+99
-0
HGCW055.jsp
src/main/webapp/HG/CW/HGCW055.jsp
+54
-0
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW055.java
0 → 100644
View file @
e8f1be20
package
com
.
baosight
.
hggp
.
hg
.
cw
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:Hgcw055.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-06-26 15:48:30 create
*/
public
class
HGCW055
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 0-未删除,1-已删除*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_YEAR
=
"year"
;
/* 年份*/
public
static
final
String
FIELD_MONTH
=
"month"
;
/* 月份*/
public
static
final
String
FIELD_CHECK_STATUS
=
"checkStatus"
;
/* 核算状态*/
public
static
final
String
FIELD_CHECK_BY
=
"checkBy"
;
/* 核算人*/
public
static
final
String
FIELD_CHECK_NAME
=
"checkName"
;
/* 核算人名称*/
public
static
final
String
FIELD_CHECK_TIME
=
"checkTime"
;
/* 核算时间*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 0-未删除,1-已删除*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 公司编码*/
public
static
final
String
COL_COMPANY_NAME
=
"COMPANY_NAME"
;
/* 公司名称*/
public
static
final
String
COL_YEAR
=
"YEAR"
;
/* 年份*/
public
static
final
String
COL_MONTH
=
"MONTH"
;
/* 月份*/
public
static
final
String
COL_CHECK_STATUS
=
"CHECK_STATUS"
;
/* 核算状态*/
public
static
final
String
COL_CHECK_BY
=
"CHECK_BY"
;
/* 核算人*/
public
static
final
String
COL_CHECK_NAME
=
"CHECK_NAME"
;
/* 核算人名称*/
public
static
final
String
COL_CHECK_TIME
=
"CHECK_TIME"
;
/* 核算时间*/
public
static
final
String
QUERY
=
"HGCW055.query"
;
public
static
final
String
COUNT
=
"HGCW055.count"
;
public
static
final
String
INSERT
=
"HGCW055.insert"
;
public
static
final
String
UPDATE
=
"HGCW055.update"
;
public
static
final
String
DELETE
=
"HGCW055.delete"
;
private
Long
id
=
new
Long
(
0
);
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Boolean
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
year
=
" "
;
/* 年份*/
private
String
month
=
" "
;
/* 月份*/
private
String
checkStatus
=
" "
;
/* 核算状态*/
private
String
checkBy
=
" "
;
/* 核算人*/
private
String
checkName
=
" "
;
/* 核算人名称*/
private
String
checkTime
=
" "
;
/* 核算时间*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_YEAR
);
eiColumn
.
setDescName
(
"年份"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MONTH
);
eiColumn
.
setDescName
(
"月份"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHECK_STATUS
);
eiColumn
.
setDescName
(
"核算状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHECK_BY
);
eiColumn
.
setDescName
(
"核算人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHECK_NAME
);
eiColumn
.
setDescName
(
"核算人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHECK_TIME
);
eiColumn
.
setDescName
(
"核算时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGCW055
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag
*/
public
Boolean
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 0-未删除,1-已删除.
*
* @param deleteFlag - 0-未删除,1-已删除
*/
public
void
setDeleteFlag
(
Boolean
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the companyCode - 公司编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 公司编码.
*
* @param companyCode - 公司编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* get the year - 年份.
* @return the year
*/
public
String
getYear
()
{
return
this
.
year
;
}
/**
* set the year - 年份.
*
* @param year - 年份
*/
public
void
setYear
(
String
year
)
{
this
.
year
=
year
;
}
/**
* get the month - 月份.
* @return the month
*/
public
String
getMonth
()
{
return
this
.
month
;
}
/**
* set the month - 月份.
*
* @param month - 月份
*/
public
void
setMonth
(
String
month
)
{
this
.
month
=
month
;
}
/**
* get the checkStatus - 核算状态.
* @return the checkStatus
*/
public
String
getCheckStatus
()
{
return
this
.
checkStatus
;
}
/**
* set the checkStatus - 核算状态.
*
* @param checkStatus - 核算状态
*/
public
void
setCheckStatus
(
String
checkStatus
)
{
this
.
checkStatus
=
checkStatus
;
}
/**
* get the checkBy - 核算人.
* @return the checkBy
*/
public
String
getCheckBy
()
{
return
this
.
checkBy
;
}
/**
* set the checkBy - 核算人.
*
* @param checkBy - 核算人
*/
public
void
setCheckBy
(
String
checkBy
)
{
this
.
checkBy
=
checkBy
;
}
/**
* get the checkName - 核算人名称.
* @return the checkName
*/
public
String
getCheckName
()
{
return
this
.
checkName
;
}
/**
* set the checkName - 核算人名称.
*
* @param checkName - 核算人名称
*/
public
void
setCheckName
(
String
checkName
)
{
this
.
checkName
=
checkName
;
}
/**
* get the checkTime - 核算时间.
* @return the checkTime
*/
public
String
getCheckTime
()
{
return
this
.
checkTime
;
}
/**
* set the checkTime - 核算时间.
*
* @param checkTime - 核算时间
*/
public
void
setCheckTime
(
String
checkTime
)
{
this
.
checkTime
=
checkTime
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setYear
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_YEAR
)),
year
));
setMonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MONTH
)),
month
));
setCheckStatus
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_STATUS
)),
checkStatus
));
setCheckBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_BY
)),
checkBy
));
setCheckName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_NAME
)),
checkName
));
setCheckTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_TIME
)),
checkTime
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_YEAR
,
StringUtils
.
toString
(
year
,
eiMetadata
.
getMeta
(
FIELD_YEAR
)));
map
.
put
(
FIELD_MONTH
,
StringUtils
.
toString
(
month
,
eiMetadata
.
getMeta
(
FIELD_MONTH
)));
map
.
put
(
FIELD_CHECK_STATUS
,
StringUtils
.
toString
(
checkStatus
,
eiMetadata
.
getMeta
(
FIELD_CHECK_STATUS
)));
map
.
put
(
FIELD_CHECK_BY
,
StringUtils
.
toString
(
checkBy
,
eiMetadata
.
getMeta
(
FIELD_CHECK_BY
)));
map
.
put
(
FIELD_CHECK_NAME
,
StringUtils
.
toString
(
checkName
,
eiMetadata
.
getMeta
(
FIELD_CHECK_NAME
)));
map
.
put
(
FIELD_CHECK_TIME
,
StringUtils
.
toString
(
checkTime
,
eiMetadata
.
getMeta
(
FIELD_CHECK_TIME
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
View file @
e8f1be20
...
...
@@ -3,12 +3,14 @@ package com.baosight.hggp.hg.cw.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ003
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -71,24 +73,15 @@ public class ServiceHGCW002A extends ServiceBase {
});
}
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"甲方名称查询失败"
);
...
...
@@ -106,24 +99,15 @@ public class ServiceHGCW002A extends ServiceBase {
List
<
UserVO
>
userVOList
=
new
ArrayList
<>();
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
if
(
contractCategory
.
equals
(
"1"
))
{
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
else
if
(
contractCategory
.
equals
(
"2"
))
{
List
<
HGPZ003
>
hgpz003List
=
HGCWTools
.
HgCw002
.
list
(
1
);
if
(
CollectionUtils
.
isNotEmpty
(
hgpz003List
))
{
hgpz003List
.
forEach
(
hgpz003
->
{
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW006A.java
View file @
e8f1be20
...
...
@@ -2,11 +2,14 @@ package com.baosight.hggp.hg.cw.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW006
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ003
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -61,23 +64,43 @@ public class ServiceHGCW006A extends ServiceBase {
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"甲方名称查询失败"
);
}
return
inInfo
;
}
/**
* 乙方名称查询
* @param inInfo
* @return
*/
public
EiInfo
partyBQuery
(
EiInfo
inInfo
)
{
try
{
List
<
UserVO
>
userVOList
=
new
ArrayList
<>();
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
List
<
HGPZ003
>
hgpz003List
=
HGCWTools
.
HgCw002
.
list
(
1
);
if
(
CollectionUtils
.
isNotEmpty
(
hgpz003List
))
{
hgpz003List
.
forEach
(
hgpz003
->
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
hgpz003
.
getSupCode
());
userVO
.
setUsername
(
hgpz003
.
getSupName
());
userVOList
.
add
(
userVO
);
});
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"乙方名称查询失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW055.java
0 → 100644
View file @
e8f1be20
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
import
cn.hutool.core.util.StrUtil
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW001
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
import
com.baosight.hggp.hg.cw.domain.HGCW055
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @className: com.baosight.hggp.hg.cw.service.ServiceHGCW055
* @description: 成本核算
* @author: lwj
* @create: 2024-06-26 15:52
*/
public
class
ServiceHGCW055
extends
ServiceBase
{
/**
* 画面初始化.
*/
@OperationLogAnnotation
(
operModul
=
"成本核算"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"成本核算"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGCW055
.
QUERY
,
new
HGCW055
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 数据检查操作
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"成本核算"
,
operType
=
"查询"
,
operDesc
=
"数据检查"
)
public
EiInfo
checkData
(
EiInfo
inInfo
){
try
{
this
.
checkAllData
(
inInfo
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 成本核算操作
* @param inInfo
* @return
*/
public
EiInfo
calculate
(
EiInfo
inInfo
){
try
{
this
.
checkAllData
(
inInfo
);
if
(
"100"
.
equals
(
inInfo
.
getString
(
"resultCode"
)))
{
// 检查返回码
String
resultCode
=
"200"
;
String
resultDesc
=
"成本核算完成"
;
String
id
=
inInfo
.
getString
(
"id"
);
AssertUtils
.
isNull
(
id
,
"成本核算ID不能为空!"
);
List
<
HGCW055
>
results
=
dao
.
query
(
HGCW055
.
QUERY
,
new
HashMap
<
String
,
Object
>()
{
{
put
(
"id"
,
id
);
}
});
if
(
results
.
size
()
>
0
)
{
HGCW055
hgcw055
=
results
.
get
(
0
);
// 成本核算步骤:
// 1,入库成本核算;
// 2,出库成本核算;
// 3,收发存汇总数据同步接口;
// 4,产副品制造成本核算接口;
// 5.费用归集完成
// 6.费用分摊完成
}
inInfo
.
set
(
"resultCode"
,
resultCode
);
inInfo
.
set
(
"resultDesc"
,
resultDesc
);
}
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
private
void
checkAllData
(
EiInfo
inInfo
)
{
// 检查返回码
String
resultCode
=
"100"
;
String
resultDesc
=
"数据检查完成"
;
String
id
=
inInfo
.
getString
(
"id"
);
AssertUtils
.
isNull
(
id
,
"成本核算ID不能为空!"
);
List
<
HGCW055
>
results
=
dao
.
query
(
HGCW055
.
QUERY
,
new
HashMap
<
String
,
Object
>(){
{
put
(
"id"
,
id
);}
});
if
(
results
.
size
()
>
0
)
{
HGCW055
hgcw055
=
results
.
get
(
0
);
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"billDate"
,
StrUtil
.
concat
(
true
,
hgcw055
.
getYear
(),
hgcw055
.
getMonth
()));
paramMap
.
put
(
"submitStatus"
,
0
);
paramMap
.
put
(
"accountPeriodStatus"
,
1
);
paramMap
.
put
(
"companyCode"
,
hgcw055
.
getCompanyCode
());
// 点击数据检查按钮弹出窗口,点击执行进行数据检查,检查顺序和显示内容如下:
// 1.业务单据日期为当月会计期的日期范围采购入库单提交或未提交;HGKC001 采购入库
List
<
HGKC001
>
hgkc001List
=
HGKCTools
.
HgKc001
.
checkList
(
paramMap
);
if
(
hgkc001List
.
size
()
>
0
)
{
resultCode
=
"101"
;
resultDesc
=
"采购入库单未提交"
;
}
// 2.业务单据日期为当月会计期的日期范围采购发票提交或未提交;HGCW012 采购发票
List
<
HGCW012
>
hgcw012List
=
HGCWTools
.
HgCw012
.
checkList
(
paramMap
);
if
(
hgcw012List
.
size
()
>
0
)
{
resultCode
=
"102"
;
resultDesc
=
"采购发票未审核"
;
}
// 3.业务单据日期为当月会计期的日期范围生产领用单提交或未提交;HGKC008 生产领料单
List
<
HGKC008
>
hgkc008List
=
HGKCTools
.
HgKc008
.
checkList
(
paramMap
);
if
(
hgkc008List
.
size
()
>
0
)
{
resultCode
=
"103"
;
resultDesc
=
"生产领料单未提交"
;
}
// 4.业务单据日期为当月会计期的日期范围生产入库单提交或未提交;HGKC003 生产入库单
List
<
HGKC003
>
hgkc003List
=
HGKCTools
.
HgKc003
.
checkList
(
paramMap
);
if
(
hgkc003List
.
size
()
>
0
)
{
resultCode
=
"104"
;
resultDesc
=
"生产入库单未提交"
;
}
// 5.业务单据日期为当月会计期的日期范围销售出库单提交或未提交;HGKC004 销售出库单
List
<
HGKC004
>
hgkc004List
=
HGKCTools
.
HgKc004
.
checkList
(
paramMap
);
if
(
hgkc004List
.
size
()
>
0
)
{
resultCode
=
"105"
;
resultDesc
=
"销售出库单未提交"
;
}
// 6.业务单据日期为当月会计期的日期范围其他入库单提交或未提交;HGKC006 其他入库单
List
<
HGKC006
>
hgkc006List
=
HGKCTools
.
HgKc006
.
checkList
(
paramMap
);
if
(
hgkc006List
.
size
()
>
0
)
{
resultCode
=
"106"
;
resultDesc
=
"其他入库单未提交"
;
}
// 7.业务单据日期为当月会计期的日期范围其他出库单提交或未提交;HGKC007 其他出库单
List
<
HGKC007
>
hgkc007List
=
HGKCTools
.
HgKc007
.
checkList
(
paramMap
);
if
(
hgkc007List
.
size
()
>
0
)
{
resultCode
=
"107"
;
resultDesc
=
"其他出库单未提交"
;
}
// 8.当前公司的当月会计期是否为关账状态
List
<
HGCW001
>
hgcw001List
=
HGCWTools
.
HgCw001
.
checkList
(
paramMap
);
if
(
hgcw001List
.
size
()
>
0
)
{
resultCode
=
"108"
;
resultDesc
=
"账期为开帐状态"
;
}
}
inInfo
.
set
(
"resultCode"
,
resultCode
);
inInfo
.
set
(
"resultDesc"
,
resultDesc
);
}
}
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW001.xml
View file @
e8f1be20
...
...
@@ -229,4 +229,44 @@
ID = #id#
</update>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW001"
>
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
ACCOUNT_YEAR as "accountYear",
<!-- 会计年度 -->
ACCOUNT_PERIOD as "accountPeriod",
<!-- 会计期 -->
ACCOUNT_PERIOD_STATUS as "accountPeriodStatus",
<!-- 会计期状态0:关账1:开账 -->
ACCOUNT_PERIOD_DATE_START as "accountPeriodDateStart",
<!-- 账期开始日期 -->
ACCOUNT_PERIOD_DATE_END as "accountPeriodDateEnd",
<!-- 账期结束日期 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
ACCOUNT_PERIOD = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountPeriodStatus"
>
ACCOUNT_PERIOD_STATUS = #accountPeriodStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
e8f1be20
...
...
@@ -325,4 +325,25 @@
ID = #id#
</update>
<select
id=
"queryCheckList"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW012"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCW012
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(RECEIVE_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
REVIEW_STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID desc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
View file @
e8f1be20
...
...
@@ -69,18 +69,18 @@
A.YEAR AS "year",
A.MONTH as "month",
A.ID AS "id",
SUM(B.AMOUNT)
AS "amount"
B.AMOUNT
AS "amount"
from ${hggpSchema}.HGCW051 a,
${hggpSchema}.HGCW052 b
WHERE A.ID = B.HGCW051_ID
from ${hggpSchema}.HGCW051 a
left JOIN (SELECT HGCW051_ID, SUM(AMOUNT) as AMOUNT FROM ${hggpSchema}.HGCW052 GROUP BY HGCW051_ID) b on A.ID = B.HGCW051_ID
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
a.
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"month"
>
MONTH = #month#
a.
MONTH = #month#
</isNotEmpty>
GROUP BY A.COMPANY_CODE,A.COMPANY_NAME,A.YEAR, A.MONTH,A.ID
</select>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW055.xml
0 → 100644
View file @
e8f1be20
<?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
Generate time : 2024-06-26 15:48:30
Version : 1.0
schema : hggp
tableName : HGCW055
ID BIGINT NOT NULL primarykey,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
UPDATED_BY VARCHAR NOT NULL,
UPDATED_NAME VARCHAR NOT NULL,
UPDATED_TIME VARCHAR NOT NULL,
DELETE_FLAG TINYINT,
COMPANY_CODE VARCHAR,
COMPANY_NAME VARCHAR,
YEAR VARCHAR NOT NULL,
MONTH VARCHAR NOT NULL,
CHECK_STATUS VARCHAR,
CHECK_BY VARCHAR,
CHECK_NAME VARCHAR,
CHECK_TIME VARCHAR
-->
<sqlMap
namespace=
"HGCW055"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"year"
>
YEAR = #year#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"month"
>
MONTH = #month#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkStatus"
>
CHECK_STATUS = #checkStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkBy"
>
CHECK_BY = #checkBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkName"
>
CHECK_NAME = #checkName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkTime"
>
CHECK_TIME = #checkTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"yearMonth"
>
CONCAT(YEAR, MONTH) = #yearMonth#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW055"
>
SELECT
ID as "id",
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
YEAR as "year",
<!-- 年份 -->
MONTH as "month",
<!-- 月份 -->
CHECK_STATUS as "checkStatus",
<!-- 核算状态 -->
CHECK_BY as "checkBy",
<!-- 核算人 -->
CHECK_NAME as "checkName",
<!-- 核算人名称 -->
CHECK_TIME as "checkTime"
<!-- 核算时间 -->
FROM ${hggpSchema}.HGCW055 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCW055 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="year">
YEAR = #year#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="month">
MONTH = #month#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkStatus">
CHECK_STATUS = #checkStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkBy">
CHECK_BY = #checkBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkName">
CHECK_NAME = #checkName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkTime">
CHECK_TIME = #checkTime#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCW055 (
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
YEAR,
<!-- 年份 -->
MONTH,
<!-- 月份 -->
CHECK_STATUS,
<!-- 核算状态 -->
CHECK_BY,
<!-- 核算人 -->
CHECK_NAME,
<!-- 核算人名称 -->
CHECK_TIME
<!-- 核算时间 -->
)
VALUES (#createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #checkStatus#, #checkBy#, #checkName#, #checkTime#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGCW055 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCW055
SET
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#,
<!-- 公司编码 -->
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
YEAR = #year#,
<!-- 年份 -->
MONTH = #month#,
<!-- 月份 -->
CHECK_STATUS = #checkStatus#,
<!-- 核算状态 -->
CHECK_BY = #checkBy#,
<!-- 核算人 -->
CHECK_NAME = #checkName#,
<!-- 核算人名称 -->
CHECK_TIME = #checkTime#
<!-- 核算时间 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
e8f1be20
...
...
@@ -25,6 +25,13 @@ import java.util.stream.Collectors;
public
class
HGCWTools
{
public
static
class
HgCw001
{
public
static
List
<
HGCW001
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"数据检查参数不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGCW001.queryCheckList"
,
paramMap
);
}
}
public
static
class
HgCw002
{
public
static
UserVO
getUserCompany
()
{
UserVO
userVO
=
new
UserVO
();
...
...
@@ -438,6 +445,11 @@ public class HGCWTools {
DaoUtils
.
update
(
"HGCW012.updateDeductionAmount"
,
HGCW012
);
}
public
static
List
<
HGCW012
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"数据检查参数不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGCW012.queryCheckList"
,
paramMap
);
}
}
/**
...
...
@@ -667,4 +679,20 @@ public class HGCWTools {
}
}
public
static
class
HgCw055
{
public
static
void
save
(
List
<
Map
>
rows
,
UserVO
userVO
)
{
// AssertUtils.isNull(contractNumber, "合同号不能为空!");
rows
.
forEach
(
row
->
{
HGCW055
hgcw055
=
new
HGCW055
();
hgcw055
.
fromMap
(
row
);
hgcw055
.
setCompanyCode
(
userVO
.
getUsercode
());
hgcw055
.
setCompanyName
(
userVO
.
getUsername
());
DaoUtils
.
insert
(
HGCW055
.
INSERT
,
hgcw055
);
});
}
}
}
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC001.xml
View file @
e8f1be20
...
...
@@ -294,4 +294,27 @@
<include
refid=
"orderBy"
/>
</select>
<select
id=
"queryCheckList"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC001"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGKC001
WHERE DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(DEPOSIT_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
SUBMIT_STATUS = #submitStatus#
</isNotEmpty>
<include
refid=
"orderBy"
/>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
View file @
e8f1be20
...
...
@@ -382,4 +382,74 @@
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, PROJ_CODE, PART_CODE
</select>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC003"
>
SELECT
ID as "id",
QUALITY_ID as "qualityId",
<!-- 质检单明细ID -->
RECTIFICATION_ID as "rectificationId",
<!-- 整改通知单ID -->
PART_SPEC_ID as "partSpecId",
<!-- 零件规格ID -->
PART_COEFFICIENT as "partCoefficient",
<!-- 零件系数 -->
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
DEPOSIT_DATE as "depositDate",
<!-- 入库日期 -->
DEPOSIT_NO as "depositNo",
<!-- 入库单号 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
INV_QTY as "invQty",
<!-- 数量 -->
INV_UNIT_WEIGHT as "invUnitWeight",
<!-- 单重 -->
INV_WEIGHT as "invWeight",
<!-- 重量 -->
DEPOSIT_NO_OLD as "depositNoOld",
<!-- 入库单号(旧) -->
REMARK as "remark",
<!-- 备注 -->
FACTORY_CODE as "factoryCode",
<!-- 工厂代码 -->
PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
PART_LENGTH as "partLength",
<!-- 零件-长 -->
PART_WIDTH as "partWidth",
<!-- 零件-宽 -->
PART_THICK as "partThick",
<!-- 零件-厚 -->
PART_SPEC as "partSpec",
<!-- 零件规格 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STORAGE_TYPE as "storageType",
<!-- 入库类型:1:入库 2:退回 -->
IS_RETURN as "isReturn",
<!-- 是否退回:0:否 1:是 -->
SUBMIT_STATUS as "submitStatus"
<!-- 提交状态 -->
FROM ${hggpSchema}.HGKC003 WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(DEPOSIT_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
SUBMIT_STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID desc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004.xml
View file @
e8f1be20
...
...
@@ -290,4 +290,24 @@
</dynamic>
</select>
<select
id=
"queryCheckList"
parameterClass=
"HashMap"
resultClass=
"HGKC004"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGKC004 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(RECEIPT_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
RECEIPT_DATE DESC,CREATED_TIME DESC
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006.xml
View file @
e8f1be20
...
...
@@ -534,4 +534,64 @@
</select>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC006"
>
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
OTHER_ENTER_DATE as "otherEnterDate",
<!-- 其他入库日期 -->
OTHER_ENTER_NO as "otherEnterNo",
<!-- 其他入库单号 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
OTHER_ENTER_NO_OLD as "otherEnterNoOld",
<!-- 其他入库单号(旧) -->
REMARK as "remark",
<!-- 备注 -->
FACTORY_CODE as "factoryCode",
<!-- 工厂代码 -->
PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
PART_LENGTH as "partLength",
<!-- 零件-长 -->
PART_WIDTH as "partWidth",
<!-- 零件-宽 -->
PART_THICK as "partThick",
<!-- 零件-厚 -->
PART_SPEC as "partSpec",
<!-- 零件规格 -->
SUBMIT_STATUS as "submitStatus",
<!-- 提交状态 -->
SOURCE as "source"
<!-- 数据来源 -->
FROM ${hggpSchema}.HGKC006 WHERE 1=1 and DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(OTHER_ENTER_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
SUBMIT_STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007.xml
View file @
e8f1be20
...
...
@@ -532,4 +532,65 @@
</select>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC007"
>
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
OTHER_OUT_DATE as "otherOutDate",
<!-- 其他出库日期 -->
OTHER_OUT_NO as "otherOutNo",
<!-- 其他出库单号 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
OTHER_OUT_NO_OLD as "otherOutNoOld",
<!-- 其他出库单号(旧) -->
REMARK as "remark",
<!-- 备注 -->
FACTORY_CODE as "factoryCode",
<!-- 工厂代码 -->
PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
PART_LENGTH as "partLength",
<!-- 零件-长 -->
PART_WIDTH as "partWidth",
<!-- 零件-宽 -->
PART_THICK as "partThick",
<!-- 零件-厚 -->
PART_SPEC as "partSpec",
<!-- 零件规格 -->
SUBMIT_STATUS as "submitStatus",
<!-- 提交状态 -->
SOURCE as "source"
<!-- 数据来源 -->
FROM ${hggpSchema}.HGKC007 WHERE 1=1 and DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(OTHER_OUT_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
SUBMIT_STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC008.xml
View file @
e8f1be20
...
...
@@ -188,4 +188,44 @@
WHERE
ID = #id#
</update>
<select
id=
"queryCheckList"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC008"
>
SELECT
ID as "id",
<!-- 主键id -->
ACCOUNT_CODE as "accountCode",
<!-- 账套 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 修改人 -->
UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 是否删除 0-否1-是 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIPT_DATE as "receiptDate",
<!-- 单据日期 -->
APPLY_CODE as "applyCode",
<!-- 申请单号 -->
WH_CODE as "whCode",
<!-- 仓库编号 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
STATUS as "status",
<!-- 状态 0未提交,1已提交 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
RECEIVE_TYPE as "receiveType"
<!-- 领料单类型 0:正常,1:退库 -->
FROM ${hggpSchema}.HGKC008 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(RECEIPT_DATE,6) = #billDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
STATUS = #submitStatus#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID desc
</isEmpty>
</dynamic>
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
e8f1be20
...
...
@@ -129,6 +129,16 @@ public class HGKCTools {
// HGCGTools.HgCg003.updateStatus(receiveNo, HGConstant.CgReceiveStatus.S_5);
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC001
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"入库时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC001.queryCheckList"
,
paramMap
);
}
}
/**
...
...
@@ -391,6 +401,17 @@ public class HGKCTools {
List
<
HGKC003
>
results
=
list
(
depositNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HGKC003:
:
getDepositNo
,
item
->
item
));
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC003
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC003.queryCheckList"
,
paramMap
);
}
}
/**
...
...
@@ -531,6 +552,17 @@ public class HGKCTools {
queryMap
.
put
(
"ids"
,
ids
);
DaoUtils
.
update
(
HGSqlConstant
.
HGKC004
.
UPDATE_PRINT
,
queryMap
);
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC004
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC004.queryCheckList"
,
paramMap
);
}
}
/**
...
...
@@ -657,6 +689,17 @@ public class HGKCTools {
HGKC006
result
=
(
HGKC006
)
DaoBase
.
getInstance
().
get
(
HGKC006
.
QUERY
,
HGKC006
.
FIELD_ID
,
id
);
return
result
;
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC006
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC006.queryCheckList"
,
paramMap
);
}
}
public
static
class
HgKc006A
{
...
...
@@ -675,6 +718,17 @@ public class HGKCTools {
HGKC007
result
=
(
HGKC007
)
DaoBase
.
getInstance
().
get
(
HGKC007
.
QUERY
,
HGKC007
.
FIELD_ID
,
id
);
return
result
;
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC007
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC007.queryCheckList"
,
paramMap
);
}
}
public
static
class
HgKc007A
{
...
...
@@ -684,7 +738,6 @@ public class HGKCTools {
List
<
HGKC007A
>
results
=
DaoBase
.
getInstance
().
query
(
HGKC007A
.
QUERY
,
paramMap
);
return
results
;
}
}
...
...
@@ -695,6 +748,17 @@ public class HGKCTools {
return
result
;
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC008
>
checkList
(
Map
paramMap
)
{
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC008.queryCheckList"
,
paramMap
);
}
}
public
static
class
HgKc008A
{
...
...
src/main/webapp/HG/CW/HGCW006A.js
View file @
e8f1be20
...
...
@@ -126,6 +126,38 @@ $(function() {
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
partyA
)
e
.
preventDefault
();
// 不使用默认的回填逻辑
}
},
"popupInputPartyB"
:
{
/**
* EFGrid 查询时触发的事件,通常在此处,设置查询条件
* 注意: 必须返回一个EiInfo,作为初始查询条件
* 配置了query时,默认每次打开窗口都会进行一次查询
*/
query
:
function
(
e
)
{
console
.
log
(
"Step"
+
(
++
i
)
+
": ----query----"
);
// 将自定义div中的字段构造成查询条件 EiInfo
// var queryInfo = EiInfo.build("#result-0-contractCategory");
var
info
=
new
EiInfo
();
return
info
;
},
/**
* grid中的数据回填时触发的事件
* @param e 回填数据事件
* e.sender 弹出窗口对象
* e.grid 弹出的grid对象
* e.model 选中的数据行model
*/
backFill
:
function
(
e
)
{
console
.
log
(
"Step"
+
(
++
i
)
+
": ----backFill----"
);
// 回填数据
var
model
=
e
.
model
;
// var data = model.toJSON();
console
.
log
(
model
);
var
partyB
=
model
.
usercode
+
"-"
+
model
.
username
;
$
(
"#result-0-partyB"
).
val
(
partyB
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
partyB
)
e
.
preventDefault
();
// 不使用默认的回填逻辑
}
}
};
...
...
src/main/webapp/HG/CW/HGCW006A.jsp
View file @
e8f1be20
...
...
@@ -31,7 +31,17 @@
resizable=
"true"
popupTitle=
"甲方名称"
popupWidth=
"400"
>
</EF:EFPopupInput>
<EF:EFInput
ename=
"result-0-partyA"
cname=
"甲方名称"
type=
"hidden"
/>
<EF:EFInput
ename=
"result-0-partyB"
cname=
"乙方名称"
colWidth=
"4"
/>
<EF:EFPopupInput
ename=
"popupInputPartyB"
cname=
"乙方名称"
colWidth=
"4"
serviceName=
"HGCW006A"
methodName=
"partyBQuery"
resultId=
"partyAResult"
save=
"false"
popupType=
"ServiceGrid"
valueField=
"username"
textField=
"username"
columnEnames=
"username,usercode"
columnCnames=
"名称,编码"
readonly=
"true"
resizable=
"true"
popupTitle=
"乙方名称"
popupWidth=
"400"
>
</EF:EFPopupInput>
<EF:EFInput
ename=
"result-0-partyB"
cname=
"乙方名称"
type=
"hidden"
/>
</div>
<div
class=
"row"
>
...
...
src/main/webapp/HG/CW/HGCW010.js
View file @
e8f1be20
...
...
@@ -25,7 +25,7 @@ $(function() {
],
loadComplete
:
function
(
grid
)
{
$
(
"#SELECT_BILL"
).
on
(
"click"
,
addFunc
);
$
(
"#
BTN_UPDATE"
).
on
(
"click"
,
updat
eFunc
);
$
(
"#
SAVE"
).
on
(
"click"
,
sav
eFunc
);
$
(
"#SUBMIT"
).
on
(
"click"
,
submitFunc
);
$
(
"#BTN_BILL"
).
on
(
"click"
,
billFunc
);
...
...
@@ -74,25 +74,55 @@ function addFunc() {
}
/**
*
修改
*
保存
*/
function
updat
eFunc
()
{
function
sav
eFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
message
(
"请选择
一条
数据"
);
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
if
(
rows
[
0
].
reviewStatus
==
"3"
)
{
message
(
"已经审核的单据不能修改"
);
return
;
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
reviewStatus
=
item
.
get
(
"reviewStatus"
);
if
((
reviewStatus
===
"1"
)){
message
(
"数据已审核"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW010"
,
"save"
,
info
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
query
();
}
catch
(
e
)
{
// TODO: handle exception
}
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
}
else
{
NotificationUtil
(
ei
);
}
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
JSColorbox
.
open
({
href
:
"HGCW010B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>开票清单</div>"
,
width
:
"90%"
,
height
:
"90%"
,
callbackName
:
windowCallback
});
//JSUtils.submitGridsData("result", "HPSC001", "save", true);
}
});
}
}
...
...
@@ -104,8 +134,17 @@ function windowCallback() {
}
function
contractDetailFunc
(
id
)
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
message
(
"请选择一条数据"
);
return
;
}
if
(
rows
[
0
].
reviewStatus
==
"3"
)
{
message
(
"已经审核的单据不能修改"
);
return
;
}
JSColorbox
.
open
({
href
:
"HGCW010
C?methodName=initLoad&inqu_status-0-mainId="
+
id
+
"&efParentFormEname=HGCW010"
,
href
:
"HGCW010
B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>开票清单</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
src/main/webapp/HG/CW/HGCW010.jsp
View file @
e8f1be20
...
...
@@ -37,7 +37,10 @@
</EF:EFComboColumn>
<EF:EFColumn
ename=
"signingDate"
cname=
"开票日期"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"billNumber"
cname=
"发票号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"taxPoints"
cname=
"税率"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFComboColumn
ename=
"taxPoints"
cname=
"税点"
width=
"120"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"开票总额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
src/main/webapp/HG/CW/HGCW010A.jsp
View file @
e8f1be20
...
...
@@ -36,7 +36,7 @@
<EF:EFColumn
ename=
"thisPriceTax"
cname=
"结算价税合计金额"
hidden=
"true"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"结算税金"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"结算金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次
结算
金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次
开票
金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"remainingAmount"
cname=
"剩余开票金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
src/main/webapp/HG/CW/HGCW010B.jsp
View file @
e8f1be20
...
...
@@ -14,7 +14,7 @@
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"客户名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
收
款总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
开
款总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
src/main/webapp/HG/CW/HGCW010C.jsp
View file @
e8f1be20
...
...
@@ -14,7 +14,7 @@
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"客户名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
收款
总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
enable=
"false"
readonly=
"true"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
开票
总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
enable=
"false"
readonly=
"true"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
src/main/webapp/HG/CW/HGCW055.js
0 → 100644
View file @
e8f1be20
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
query
();
});
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
columns
:
[
{
field
:
"button"
,
title
:
"操作"
,
template
:
'<input value="数据检查" class="i-btn-sm" type="button" align="center" onclick="openButtonCheck(
\'
#:id#
\'
)" >'
+
'<input value="成本核算" class="i-btn-sm" type="button" align="center" onclick="openButtonCalculate(
\'
#:id#
\'
)" >'
,
width
:
100
}
],
}
});
$
(
window
).
load
(
function
()
{
// 查
query
();
});
/**
* 查询
*/
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 数据检查
* @param id
*/
let
openButtonCheck
=
function
(
id
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"id"
,
id
);
JSUtils
.
confirm
(
"确定进行检查数据吗? "
,
{
ok
:
function
()
{
EiCommunicator
.
send
(
'HGCW055'
,
'checkData'
,
inEiInfo
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
let
resultCode
=
ei
.
extAttr
.
resultCode
;
let
resultDesc
=
ei
.
extAttr
.
resultDesc
;
message
(
resultDesc
);
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
);
}
});
}
/**
* 成本核算
* @param id
*/
let
openButtonCalculate
=
function
(
id
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"id"
,
id
);
JSUtils
.
confirm
(
"确定进行成本核算操作吗? "
,
{
ok
:
function
()
{
EiCommunicator
.
send
(
'HGCW055'
,
'calculate'
,
inEiInfo
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
let
resultCode
=
ei
.
extAttr
.
resultCode
;
let
resultDesc
=
ei
.
extAttr
.
resultDesc
;
message
(
resultDesc
);
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
}
);
}
});
}
src/main/webapp/HG/CW/HGCW055.jsp
0 → 100644
View file @
e8f1be20
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
</head>
<EF:EFPage
title=
"账期维护"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFSelect>
<EF:EFDatePicker
cname=
"核算年月"
blockId=
"inqu_status"
ename=
"yearMonth"
row=
"0"
colWidth=
"3"
format=
"yyyy-MM"
parseFormats=
"['yyyyMM']"
start=
"year"
depth=
"year"
/>
<EF:EFSelect
cname=
"核算状态"
ename=
"inqu_status-0-checkStatus"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.checkStatus"
/>
</EF:EFSelect>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
autoBind=
"false"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"button"
cname=
"操作"
width=
"120"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"150"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"year"
cname=
"核算年度"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"month"
cname=
"核算月份"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFComboColumn
ename=
"checkStatus"
cname=
"核算状态"
width=
"100"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"false"
defaultValue=
"0"
>
<EF:EFCodeOption
codeName=
"hggp.cw.checkStatus"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"checkName"
cname=
"核算人"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"checkBy"
cname=
"核算人"
width=
"100"
align=
"center"
required=
"true"
hidden=
"true"
/>
<EF:EFColumn
ename=
"checkTime"
cname=
"核算时间"
enable=
"false"
width=
"120"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
displayType=
"datetime"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HG/CW/HGCW055.js"
></script>
\ No newline at end of file
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