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
ce27569a
Commit
ce27569a
authored
Jun 28, 2024
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本核算、费用归集
parent
37d3052d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
989 additions
and
8 deletions
+989
-8
HGCW055.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW055.java
+0
-0
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
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 @
ce27569a
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW055.java
0 → 100644
View file @
ce27569a
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 @
ce27569a
...
@@ -229,4 +229,44 @@
...
@@ -229,4 +229,44 @@
ID = #id#
ID = #id#
</update>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
ce27569a
...
@@ -325,4 +325,25 @@
...
@@ -325,4 +325,25 @@
ID = #id#
ID = #id#
</update>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
View file @
ce27569a
...
@@ -69,18 +69,18 @@
...
@@ -69,18 +69,18 @@
A.YEAR AS "year",
A.YEAR AS "year",
A.MONTH as "month",
A.MONTH as "month",
A.ID AS "id",
A.ID AS "id",
SUM(B.AMOUNT)
AS "amount"
B.AMOUNT
AS "amount"
from ${hggpSchema}.HGCW051 a,
from ${hggpSchema}.HGCW051 a
${hggpSchema}.HGCW052 b
left JOIN (SELECT HGCW051_ID, SUM(AMOUNT) as AMOUNT FROM ${hggpSchema}.HGCW052 GROUP BY HGCW051_ID) b on A.ID = B.HGCW051_ID
WHERE A.ID = B.HGCW051_ID
WHERE 1 = 1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
a.
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"month"
>
<isNotEmpty
prepend=
" AND "
property=
"month"
>
MONTH = #month#
a.
MONTH = #month#
</isNotEmpty>
</isNotEmpty>
GROUP BY A.COMPANY_CODE,A.COMPANY_NAME,A.YEAR, A.MONTH,A.ID
</select>
</select>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW055.xml
0 → 100644
View file @
ce27569a
<?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 @
ce27569a
...
@@ -25,6 +25,13 @@ import java.util.stream.Collectors;
...
@@ -25,6 +25,13 @@ import java.util.stream.Collectors;
public
class
HGCWTools
{
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
class
HgCw002
{
public
static
UserVO
getUserCompany
()
{
public
static
UserVO
getUserCompany
()
{
UserVO
userVO
=
new
UserVO
();
UserVO
userVO
=
new
UserVO
();
...
@@ -438,6 +445,11 @@ public class HGCWTools {
...
@@ -438,6 +445,11 @@ public class HGCWTools {
DaoUtils
.
update
(
"HGCW012.updateDeductionAmount"
,
HGCW012
);
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 {
...
@@ -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 @
ce27569a
...
@@ -294,4 +294,27 @@
...
@@ -294,4 +294,27 @@
<include
refid=
"orderBy"
/>
<include
refid=
"orderBy"
/>
</select>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
View file @
ce27569a
...
@@ -382,4 +382,74 @@
...
@@ -382,4 +382,74 @@
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, PROJ_CODE, PART_CODE
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, PROJ_CODE, PART_CODE
</select>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004.xml
View file @
ce27569a
...
@@ -290,4 +290,24 @@
...
@@ -290,4 +290,24 @@
</dynamic>
</dynamic>
</select>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006.xml
View file @
ce27569a
...
@@ -534,4 +534,64 @@
...
@@ -534,4 +534,64 @@
</select>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007.xml
View file @
ce27569a
...
@@ -532,4 +532,65 @@
...
@@ -532,4 +532,65 @@
</select>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC008.xml
View file @
ce27569a
...
@@ -188,4 +188,44 @@
...
@@ -188,4 +188,44 @@
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</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>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
ce27569a
...
@@ -127,6 +127,16 @@ public class HGKCTools {
...
@@ -127,6 +127,16 @@ public class HGKCTools {
// HGCGTools.HgCg003.updateStatus(receiveNo, HGConstant.CgReceiveStatus.S_5);
// 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
);
}
}
}
/**
/**
...
@@ -387,6 +397,17 @@ public class HGKCTools {
...
@@ -387,6 +397,17 @@ public class HGKCTools {
List
<
HGKC003
>
results
=
list
(
depositNos
);
List
<
HGKC003
>
results
=
list
(
depositNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HGKC003:
:
getDepositNo
,
item
->
item
));
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
);
}
}
}
/**
/**
...
@@ -527,6 +548,17 @@ public class HGKCTools {
...
@@ -527,6 +548,17 @@ public class HGKCTools {
queryMap
.
put
(
"ids"
,
ids
);
queryMap
.
put
(
"ids"
,
ids
);
DaoUtils
.
update
(
HGSqlConstant
.
HGKC004
.
UPDATE_PRINT
,
queryMap
);
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
);
}
}
}
/**
/**
...
@@ -653,6 +685,17 @@ public class HGKCTools {
...
@@ -653,6 +685,17 @@ public class HGKCTools {
HGKC006
result
=
(
HGKC006
)
DaoBase
.
getInstance
().
get
(
HGKC006
.
QUERY
,
HGKC006
.
FIELD_ID
,
id
);
HGKC006
result
=
(
HGKC006
)
DaoBase
.
getInstance
().
get
(
HGKC006
.
QUERY
,
HGKC006
.
FIELD_ID
,
id
);
return
result
;
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
{
public
static
class
HgKc006A
{
...
@@ -671,6 +714,17 @@ public class HGKCTools {
...
@@ -671,6 +714,17 @@ public class HGKCTools {
HGKC007
result
=
(
HGKC007
)
DaoBase
.
getInstance
().
get
(
HGKC007
.
QUERY
,
HGKC007
.
FIELD_ID
,
id
);
HGKC007
result
=
(
HGKC007
)
DaoBase
.
getInstance
().
get
(
HGKC007
.
QUERY
,
HGKC007
.
FIELD_ID
,
id
);
return
result
;
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
{
public
static
class
HgKc007A
{
...
@@ -680,7 +734,6 @@ public class HGKCTools {
...
@@ -680,7 +734,6 @@ public class HGKCTools {
List
<
HGKC007A
>
results
=
DaoBase
.
getInstance
().
query
(
HGKC007A
.
QUERY
,
paramMap
);
List
<
HGKC007A
>
results
=
DaoBase
.
getInstance
().
query
(
HGKC007A
.
QUERY
,
paramMap
);
return
results
;
return
results
;
}
}
}
}
...
@@ -691,6 +744,17 @@ public class HGKCTools {
...
@@ -691,6 +744,17 @@ public class HGKCTools {
return
result
;
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
{
public
static
class
HgKc008A
{
...
...
src/main/webapp/HG/CW/HGCW055.js
0 → 100644
View file @
ce27569a
$
(
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 @
ce27569a
<!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