Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
2f343c84
Commit
2f343c84
authored
Jul 09, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
0ac104c3
6b3c468b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
13 deletions
+30
-13
ServiceHPPZ015A.java
...java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ015A.java
+5
-5
HPPZTools.java
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
+17
-0
HPRZ001.xml
src/main/java/com/baosight/hpjx/hp/rz/sql/HPRZ001.xml
+8
-8
No files found.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ015A.java
View file @
2f343c84
...
...
@@ -50,11 +50,11 @@ public class ServiceHPPZ015A extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
,
DdynamicEnum
.
CODESET_CODE_BLOCK_ID
),
map
,
false
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
id
=
MapUtils
.
getString
(
queryMap
,
"projId"
);
HPSC001
hpsc001
=
HPSCTools
.
HpSc001
.
getId
(
id
);
HPPZ015A
hppz015A
=
new
HPPZ015A
();
hppz015A
.
setProjCode
(
hpsc001
.
getProjCode
());
//
Map queryMap = EiInfoUtils.getFirstRow(inInfo);
//
String id = MapUtils.getString(queryMap, "projId");
// HPPZ015 hppz015 = HPPZTools.HpPz015
.getId(id);
//
HPPZ015A hppz015A = new HPPZ015A();
// hppz015A.setProjCode(hppz015
.getProjCode());
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPPZ015A
().
eiMetadata
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
View file @
2f343c84
...
...
@@ -699,6 +699,23 @@ public class HPPZTools {
AssertUtils
.
isEmpty
(
results
,
String
.
format
(
"部件编码[%s]信息不存在"
,
prdtCode
));
return
results
.
get
(
0
);
}
/**
* 查询
*
* @param id
* @return
*/
public
static
HPPZ015
getId
(
String
id
)
{
AssertUtils
.
isEmpty
(
id
,
"项目编码不能为空"
);
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
id
);
queryMap
.
put
(
"companyCode"
,
companyCode
);
List
<
HPPZ015
>
results
=
DaoBase
.
getInstance
().
query
(
HPPZ015
.
QUERY
,
queryMap
);
AssertUtils
.
isNull
(
results
.
get
(
0
).
getProjCode
(),
String
.
format
(
"项目名[%s]信息不存在"
,
id
));
return
results
.
get
(
0
);
}
}
/**
...
...
src/main/java/com/baosight/hpjx/hp/rz/sql/HPRZ001.xml
View file @
2f343c84
...
...
@@ -3,7 +3,7 @@
<!-- table information
Generate time : 2024-02-23 15:28:50
Version : 1.0
tableName :${hpjxSchema}.
t
sys_operation_log
tableName :${hpjxSchema}.sys_operation_log
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
CREATED_BY VARCHAR,
...
...
@@ -40,7 +40,7 @@
OPER_TYPE as "operType",
<!-- 操作类型 -->
OPER_DESC as "operDesc",
<!-- 操作说明 -->
OPER_CONTENT as "operContent"
<!-- 操作内容 -->
FROM ${hpjxSchema}.
t
sys_operation_log WHERE 1=1
FROM ${hpjxSchema}.sys_operation_log WHERE 1=1
<include
refid=
"authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
...
...
@@ -72,7 +72,7 @@
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.
t
sys_operation_log WHERE 1=1
SELECT COUNT(*) FROM ${hpjxSchema}.sys_operation_log WHERE 1=1
<include
refid=
"authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
...
...
@@ -125,7 +125,7 @@
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.
t
sys_operation_log (ID,
<!-- 主键id -->
INSERT INTO ${hpjxSchema}.sys_operation_log (ID,
<!-- 主键id -->
COMPANY_CODE,
<!-- 企业编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
...
...
@@ -139,12 +139,12 @@
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.
t
sys_operation_log WHERE
DELETE FROM ${hpjxSchema}.sys_operation_log WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.
t
sys_operation_log
UPDATE ${hpjxSchema}.sys_operation_log
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
...
...
@@ -162,7 +162,7 @@
<select
id=
"queryOperModulComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
distinct OPER_MODUL as "operModul"
<!-- 操作模块 -->
FROM ${hpjxSchema}.
t
sys_operation_log WHERE 1=1
FROM ${hpjxSchema}.sys_operation_log WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -172,7 +172,7 @@
<select
id=
"queryOperTypeComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
distinct OPER_TYPE as "operType"
<!-- 操作类型 -->
FROM ${hpjxSchema}.
t
sys_operation_log WHERE 1=1
FROM ${hpjxSchema}.sys_operation_log WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
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