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
1b5c1b5b
Commit
1b5c1b5b
authored
Oct 10, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://git.pseer.com:8800/platform/hg-smart
into dev
parents
bffae33b
2764e964
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
57 additions
and
57 deletions
+57
-57
HgCtConst.java
...main/java/com/baosight/hggp/hg/ct/constant/HgCtConst.java
+1
-1
HgCtSqlConst.java
...n/java/com/baosight/hggp/hg/ct/constant/HgCtSqlConst.java
+2
-2
HGCT001.java
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT001.java
+7
-7
ServiceHGCT001.java
.../java/com/baosight/hggp/hg/ct/service/ServiceHGCT001.java
+20
-20
HGCT001.xml
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT001.xml
+6
-6
HgCtTools.java
src/main/java/com/baosight/hggp/hg/ct/tools/HgCtTools.java
+9
-9
HgCtUtils.java
src/main/java/com/baosight/hggp/hg/ct/utils/HgCtUtils.java
+6
-6
iPlatV7-index.js
src/main/resources/META-INF/resources/iPlatV7-index.js
+4
-4
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+1
-1
HGCT001.js
src/main/webapp/HG/CT/HGCT001.js
+1
-1
HGCT001.jsp
src/main/webapp/HG/CT/HGCT001.jsp
+0
-0
No files found.
src/main/java/com/baosight/hggp/hg/ct/constant/HgCtConst.java
View file @
1b5c1b5b
...
@@ -12,7 +12,7 @@ public class HgCtConst {
...
@@ -12,7 +12,7 @@ public class HgCtConst {
* @author:songx
* @author:songx
* @date:2024/9/24,17:54
* @date:2024/9/24,17:54
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 状态
* 状态
...
...
src/main/java/com/baosight/hggp/hg/ct/constant/HgCtSqlConst.java
View file @
1b5c1b5b
...
@@ -10,10 +10,10 @@ public class HgCtSqlConst {
...
@@ -10,10 +10,10 @@ public class HgCtSqlConst {
* @author:songx
* @author:songx
* @date:2024/8/29,15:54
* @date:2024/8/29,15:54
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
// 确认
// 确认
public
static
final
String
CONFIRM
=
"HGCT01.confirm"
;
public
static
final
String
CONFIRM
=
"HGCT0
0
1.confirm"
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT01.java
→
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT0
0
1.java
View file @
1b5c1b5b
...
@@ -18,7 +18,7 @@ import java.util.Map;
...
@@ -18,7 +18,7 @@ import java.util.Map;
* @version 1.0
* @version 1.0
* @history 2024-10-08 17:03:25 create
* @history 2024-10-08 17:03:25 create
*/
*/
public
class
HGCT01
extends
DaoEPBase
{
public
class
HGCT0
0
1
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -56,11 +56,11 @@ public class HGCT01 extends DaoEPBase {
...
@@ -56,11 +56,11 @@ public class HGCT01 extends DaoEPBase {
public
static
final
String
COL_FORM_PARAM
=
"FORM_PARAM"
;
/* 画面参数*/
public
static
final
String
COL_FORM_PARAM
=
"FORM_PARAM"
;
/* 画面参数*/
public
static
final
String
COL_CLOSE_TIME
=
"CLOSE_TIME"
;
/* 关闭时间*/
public
static
final
String
COL_CLOSE_TIME
=
"CLOSE_TIME"
;
/* 关闭时间*/
public
static
final
String
QUERY
=
"HGCT01.query"
;
public
static
final
String
QUERY
=
"HGCT0
0
1.query"
;
public
static
final
String
COUNT
=
"HGCT01.count"
;
public
static
final
String
COUNT
=
"HGCT0
0
1.count"
;
public
static
final
String
INSERT
=
"HGCT01.insert"
;
public
static
final
String
INSERT
=
"HGCT0
0
1.insert"
;
public
static
final
String
UPDATE
=
"HGCT01.update"
;
public
static
final
String
UPDATE
=
"HGCT0
0
1.update"
;
public
static
final
String
DELETE
=
"HGCT01.delete"
;
public
static
final
String
DELETE
=
"HGCT0
0
1.delete"
;
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
...
@@ -156,7 +156,7 @@ public class HGCT01 extends DaoEPBase {
...
@@ -156,7 +156,7 @@ public class HGCT01 extends DaoEPBase {
/**
/**
* the constructor.
* the constructor.
*/
*/
public
HGCT01
()
{
public
HGCT0
0
1
()
{
initMetaData
();
initMetaData
();
}
}
...
...
src/main/java/com/baosight/hggp/hg/ct/service/ServiceHGCT01.java
→
src/main/java/com/baosight/hggp/hg/ct/service/ServiceHGCT0
0
1.java
View file @
1b5c1b5b
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.service;
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.service;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
...
@@ -25,7 +25,7 @@ import java.util.Map;
...
@@ -25,7 +25,7 @@ import java.util.Map;
* @author:songx
* @author:songx
* @date:2021/10/15,16:46
* @date:2021/10/15,16:46
*/
*/
public
class
ServiceHGCT01
extends
ServiceEPBase
{
public
class
ServiceHGCT0
0
1
extends
ServiceEPBase
{
/**
/**
* 页面加载调用.
* 页面加载调用.
...
@@ -34,7 +34,7 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -34,7 +34,7 @@ public class ServiceHGCT01 extends ServiceEPBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCT01
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCT0
0
1
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
...
@@ -50,8 +50,8 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -50,8 +50,8 @@ public class ServiceHGCT01 extends ServiceEPBase {
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 只看自己的通知
// 只看自己的通知
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT01
.
QUERY
);
inInfo
=
super
.
query
(
inInfo
,
HGCT0
0
1
.
QUERY
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
@@ -67,11 +67,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -67,11 +67,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
queryTodo
(
EiInfo
inInfo
)
{
public
EiInfo
queryTodo
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
OPEN
);
queryMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
OPEN
);
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
1
.
QUERY
,
new
HGCT
01
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
01
.
QUERY
,
new
HGCT0
01
());
// 查询总数量
// 查询总数量
List
<
Integer
>
counts
=
dao
.
query
(
HGCT01
.
COUNT
,
queryMap
);
List
<
Integer
>
counts
=
dao
.
query
(
HGCT0
0
1
.
COUNT
,
queryMap
);
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询待办信息"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询待办信息"
);
...
@@ -88,11 +88,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -88,11 +88,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
queryRecord
(
EiInfo
inInfo
)
{
public
EiInfo
queryRecord
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
queryMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
1
.
QUERY
,
new
HGCT
01
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
01
.
QUERY
,
new
HGCT0
01
());
// 查询总数量
// 查询总数量
List
<
Integer
>
counts
=
dao
.
query
(
HGCT01
.
COUNT
,
queryMap
);
List
<
Integer
>
counts
=
dao
.
query
(
HGCT0
0
1
.
COUNT
,
queryMap
);
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询已办信息"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询已办信息"
);
...
@@ -109,13 +109,13 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -109,13 +109,13 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
confirm
(
EiInfo
inInfo
)
{
public
EiInfo
confirm
(
EiInfo
inInfo
)
{
try
{
try
{
Map
resultRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
Map
resultRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
if
(
ObjectUtils
.
isEmpty
(
resultRow
.
get
(
HGCT01
.
FIELD_INTERNAL_CODE
)))
{
if
(
ObjectUtils
.
isEmpty
(
resultRow
.
get
(
HGCT0
0
1
.
FIELD_INTERNAL_CODE
)))
{
inInfo
.
setMsg
(
"无效的待办消息"
);
inInfo
.
setMsg
(
"无效的待办消息"
);
return
inInfo
;
return
inInfo
;
}
}
resultRow
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
resultRow
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
resultRow
.
put
(
HGCT01
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
resultRow
.
put
(
HGCT0
0
1
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt01
.
CONFIRM
,
resultRow
);
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt0
0
1
.
CONFIRM
,
resultRow
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"确认已办失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"确认已办失败"
);
}
}
...
@@ -131,9 +131,9 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -131,9 +131,9 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
batchConfirm
(
EiInfo
inInfo
)
{
public
EiInfo
batchConfirm
(
EiInfo
inInfo
)
{
try
{
try
{
int
successCount
=
0
;
int
successCount
=
0
;
List
<
HGCT0
1
>
fCt01s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCT
01
.
class
);
List
<
HGCT0
01
>
fCt01s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCT0
01
.
class
);
for
(
HGCT01
fCt01
:
fCt01s
)
{
for
(
HGCT0
0
1
fCt01
:
fCt01s
)
{
int
result
=
HgCtTools
.
HgCt01
.
confirm
(
fCt01
.
getInternalCode
());
int
result
=
HgCtTools
.
HgCt0
0
1
.
confirm
(
fCt01
.
getInternalCode
());
successCount
+=
result
;
successCount
+=
result
;
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
...
...
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT01.xml
→
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT0
0
1.xml
View file @
1b5c1b5b
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGCT01"
>
<sqlMap
namespace=
"HGCT0
0
1"
>
<sql
id=
"column"
>
<sql
id=
"column"
>
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
...
@@ -81,23 +81,23 @@
...
@@ -81,23 +81,23 @@
</dynamic>
</dynamic>
</sql>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.ct.domain.HGCT01"
>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.ct.domain.HGCT0
0
1"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCT01
FROM ${hggpSchema}.HGCT0
0
1
WHERE 1=1
WHERE 1=1
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"orderBy"
/>
<include
refid=
"orderBy"
/>
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCT01
SELECT COUNT(*) FROM ${hggpSchema}.HGCT0
0
1
WHERE 1=1
WHERE 1=1
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
</select>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCT01 (
INSERT INTO ${hggpSchema}.HGCT0
0
1 (
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<!-- 确认 -->
<!-- 确认 -->
<update
id=
"confirm"
>
<update
id=
"confirm"
>
UPDATE ${hggpSchema}.HGCT01
UPDATE ${hggpSchema}.HGCT0
0
1
SET
SET
STATUS = #status#,
STATUS = #status#,
CLOSE_TIME = #closeTime#,
CLOSE_TIME = #closeTime#,
...
...
src/main/java/com/baosight/hggp/hg/ct/tools/HgCtTools.java
View file @
1b5c1b5b
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.tools;
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.tools;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.StringUtils
;
...
@@ -22,16 +22,16 @@ public class HgCtTools {
...
@@ -22,16 +22,16 @@ public class HgCtTools {
* @author:songx
* @author:songx
* @date:2024/3/25,21:04
* @date:2024/3/25,21:04
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 写入数据库
* 写入数据库
*
*
* @param ct00
* @param ct00
*/
*/
public
static
void
insertDb
(
HGCT01
ct00
)
{
public
static
void
insertDb
(
HGCT0
0
1
ct00
)
{
ct00
.
setStatus
(
HgCtConst
.
HgCt01
.
Status
.
OPEN
);
ct00
.
setStatus
(
HgCtConst
.
HgCt0
0
1
.
Status
.
OPEN
);
DaoUtils
.
insert
(
HGCT01
.
INSERT
,
ct00
);
DaoUtils
.
insert
(
HGCT0
0
1
.
INSERT
,
ct00
);
}
}
/**
/**
...
@@ -44,10 +44,10 @@ public class HgCtTools {
...
@@ -44,10 +44,10 @@ public class HgCtTools {
return
0
;
return
0
;
}
}
Map
paramMap
=
new
HashMap
();
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
HGCT01
.
FIELD_INTERNAL_CODE
,
internalCode
);
paramMap
.
put
(
HGCT0
0
1
.
FIELD_INTERNAL_CODE
,
internalCode
);
paramMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
paramMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
paramMap
.
put
(
HGCT01
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
paramMap
.
put
(
HGCT0
0
1
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
return
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt01
.
CONFIRM
,
paramMap
);
return
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt0
0
1
.
CONFIRM
,
paramMap
);
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/ct/utils/HgCtUtils.java
View file @
1b5c1b5b
package
com
.
baosight
.
hggp
.
hg
.
ct
.
utils
;
package
com
.
baosight
.
hggp
.
hg
.
ct
.
utils
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
...
@@ -21,14 +21,14 @@ public class HgCtUtils {
...
@@ -21,14 +21,14 @@ public class HgCtUtils {
* @author:songx
* @author:songx
* @date:2024/10/8,17:20
* @date:2024/10/8,17:20
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 发送通知
* 发送通知
*
*
* @param ct00 消息体
* @param ct00 消息体
*/
*/
public
static
void
send
(
HGCT01
ct00
)
{
public
static
void
send
(
HGCT0
0
1
ct00
)
{
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
...
@@ -36,7 +36,7 @@ public class HgCtUtils {
...
@@ -36,7 +36,7 @@ public class HgCtUtils {
// 设置通知对象名称
// 设置通知对象名称
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
ct00
.
getUserEname
());
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
ct00
.
getUserEname
());
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserCname
(
user
.
getUserName
());
HgCtTools
.
HgCt01
.
insertDb
(
ct00
);
HgCtTools
.
HgCt0
0
1
.
insertDb
(
ct00
);
}
}
/**
/**
...
@@ -45,7 +45,7 @@ public class HgCtUtils {
...
@@ -45,7 +45,7 @@ public class HgCtUtils {
* @param ct00 消息体
* @param ct00 消息体
* @param loginNames loginNames
* @param loginNames loginNames
*/
*/
public
static
void
send
(
HGCT01
ct00
,
List
<
String
>
loginNames
)
{
public
static
void
send
(
HGCT0
0
1
ct00
,
List
<
String
>
loginNames
)
{
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
...
@@ -55,7 +55,7 @@ public class HgCtUtils {
...
@@ -55,7 +55,7 @@ public class HgCtUtils {
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
loginName
);
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
loginName
);
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserEname
(
user
.
getLoginName
());
ct00
.
setUserEname
(
user
.
getLoginName
());
HgCtTools
.
HgCt01
.
insertDb
(
ct00
);
HgCtTools
.
HgCt0
0
1
.
insertDb
(
ct00
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"发送通知消息失败:{}"
,
e
.
getMessage
(),
e
);
log
.
error
(
"发送通知消息失败:{}"
,
e
.
getMessage
(),
e
);
...
...
src/main/resources/META-INF/resources/iPlatV7-index.js
View file @
1b5c1b5b
...
@@ -1121,13 +1121,13 @@
...
@@ -1121,13 +1121,13 @@
}
}
});
});
// 绑定查看更多
// 绑定查看更多
bandForMore
(
'todo'
,
'HGCT01'
,
'inqu_status-0-status=open'
);
bandForMore
(
'todo'
,
'HGCT0
0
1'
,
'inqu_status-0-status=open'
);
// 绑定刷新
// 绑定刷新
bandForRefresh
(
'todo'
,
refreshTodo
);
bandForRefresh
(
'todo'
,
refreshTodo
);
};
};
let
refreshTodo
=
function
()
{
let
refreshTodo
=
function
()
{
refreshService
(
'HGCT01'
,
'queryTodo'
,
drawTodo
);
refreshService
(
'HGCT0
0
1'
,
'queryTodo'
,
drawTodo
);
};
};
// 定时刷新
// 定时刷新
...
@@ -1394,13 +1394,13 @@
...
@@ -1394,13 +1394,13 @@
}
}
});
});
// 绑定查看更多
// 绑定查看更多
bandForMore
(
'record'
,
'HGCT01'
,
'inqu_status-0-status=close'
);
bandForMore
(
'record'
,
'HGCT0
0
1'
,
'inqu_status-0-status=close'
);
// 绑定刷新
// 绑定刷新
bandForRefresh
(
'record'
,
refreshRecord
);
bandForRefresh
(
'record'
,
refreshRecord
);
};
};
let
refreshRecord
=
function
()
{
let
refreshRecord
=
function
()
{
refreshService
(
'HGCT01'
,
'queryRecord'
,
drawRecord
);
refreshService
(
'HGCT0
0
1'
,
'queryRecord'
,
drawRecord
);
};
};
// 定时刷新
// 定时刷新
...
...
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
1b5c1b5b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<!-- 工具 -->
<!-- 工具 -->
<sqlMap
resource=
"com/baosight/hggp/hg/dm/sql/HGDM099.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/dm/sql/HGDM099.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/ct/sql/HGCT01.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/ct/sql/HGCT0
0
1.xml"
/>
<!-- 工艺 -->
<!-- 工艺 -->
<sqlMap
resource=
"com/baosight/hggp/hg/sj/sql/HGSJ001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sj/sql/HGSJ001.xml"
/>
...
...
src/main/webapp/HG/CT/HGCT01.js
→
src/main/webapp/HG/CT/HGCT0
0
1.js
View file @
1b5c1b5b
...
@@ -59,7 +59,7 @@ let confirm = function () {
...
@@ -59,7 +59,7 @@ let confirm = function () {
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
确认已办
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
确认已办
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGCT01"
,
"batchConfirm"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HGCT0
0
1"
,
"batchConfirm"
,
true
);
}
}
});
});
}
}
...
...
src/main/webapp/HG/CT/HGCT01.jsp
→
src/main/webapp/HG/CT/HGCT0
0
1.jsp
View file @
1b5c1b5b
File moved
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