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
ea7187a5
Commit
ea7187a5
authored
Sep 29, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://129.211.46.84:8800/platform/hp-smart
into dev
parents
16fc0eac
949b6b26
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
24 deletions
+36
-24
ServiceHPFW001B.java
...java/com/baosight/hpjx/hp/fw/service/ServiceHPFW001B.java
+2
-0
ServiceHPFW002B.java
...java/com/baosight/hpjx/hp/fw/service/ServiceHPFW002B.java
+2
-0
ServiceHPFW003B.java
...java/com/baosight/hpjx/hp/fw/service/ServiceHPFW003B.java
+2
-0
ServiceHPFW004B.java
...java/com/baosight/hpjx/hp/fw/service/ServiceHPFW004B.java
+2
-0
ServiceHPFW007B.java
...java/com/baosight/hpjx/hp/fw/service/ServiceHPFW007B.java
+2
-0
ServiceHPXT011B.java
...java/com/baosight/hpjx/hp/xt/service/ServiceHPXT011B.java
+26
-24
No files found.
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW001B.java
View file @
ea7187a5
...
...
@@ -66,6 +66,8 @@ public class ServiceHPFW001B extends ServiceEPBase {
}
else
{
this
.
modify
(
fFw001
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw001
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW002B.java
View file @
ea7187a5
...
...
@@ -66,6 +66,8 @@ public class ServiceHPFW002B extends ServiceEPBase {
}
else
{
this
.
modify
(
fFw002
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw002
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW003B.java
View file @
ea7187a5
...
...
@@ -67,6 +67,8 @@ public class ServiceHPFW003B extends ServiceEPBase {
}
else
{
this
.
modify
(
fFw003
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw003
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW004B.java
View file @
ea7187a5
...
...
@@ -64,6 +64,8 @@ public class ServiceHPFW004B extends ServiceEPBase {
}
else
{
this
.
modify
(
fFw004
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw004
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW007B.java
View file @
ea7187a5
...
...
@@ -66,6 +66,8 @@ public class ServiceHPFW007B extends ServiceEPBase {
}
else
{
this
.
modify
(
fFw007
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw007
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/xt/service/ServiceHPXT011B.java
View file @
ea7187a5
...
...
@@ -57,14 +57,16 @@ public class ServiceHPXT011B extends ServiceEPBase {
*/
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
HPXT011
fXt0
0
1
=
MapUtils
.
toDaoEPBase
(
inInfo
,
HPXT011
.
class
);
fXt0
01
.
setNoticeDate
(
DateUtils
.
formatShort
(
fXt00
1
.
getNoticeDate
()));
fXt0
01
.
setExpireDate
(
DateUtils
.
formatShort
(
fXt00
1
.
getExpireDate
()));
if
(
StringUtils
.
isBlank
(
fXt0
0
1
.
getNoticeNo
()))
{
this
.
add
(
fXt0
0
1
);
HPXT011
fXt0
1
1
=
MapUtils
.
toDaoEPBase
(
inInfo
,
HPXT011
.
class
);
fXt0
11
.
setNoticeDate
(
DateUtils
.
formatShort
(
fXt01
1
.
getNoticeDate
()));
fXt0
11
.
setExpireDate
(
DateUtils
.
formatShort
(
fXt01
1
.
getExpireDate
()));
if
(
StringUtils
.
isBlank
(
fXt0
1
1
.
getNoticeNo
()))
{
this
.
add
(
fXt0
1
1
);
}
else
{
this
.
modify
(
fXt0
0
1
);
this
.
modify
(
fXt0
1
1
);
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fXt011
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
@@ -77,24 +79,24 @@ public class ServiceHPXT011B extends ServiceEPBase {
/**
* 新增
*
* @param fXt0
0
1
* @param fXt0
1
1
*/
private
void
add
(
HPXT011
fXt0
0
1
)
{
fXt0
0
1
.
setNoticeNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
NOTICE_NO
));
fXt0
0
1
.
setStatus
(
HPConstant
.
submitStatus
.
S0
);
fXt0
0
1
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
DaoUtils
.
insert
(
HPXT011
.
INSERT
,
fXt0
0
1
);
private
void
add
(
HPXT011
fXt0
1
1
)
{
fXt0
1
1
.
setNoticeNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
NOTICE_NO
));
fXt0
1
1
.
setStatus
(
HPConstant
.
submitStatus
.
S0
);
fXt0
1
1
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
DaoUtils
.
insert
(
HPXT011
.
INSERT
,
fXt0
1
1
);
}
/**
* 修改数据
*
* @param fXt0
0
1
* @param fXt0
1
1
*/
private
void
modify
(
HPXT011
fXt0
0
1
)
{
HPXT011
dbXt0
01
=
HpXtUtils
.
HpXt011
.
lockAndGet
(
fXt00
1
);
this
.
checkData
(
fXt0
01
,
dbXt00
1
);
DaoUtils
.
update
(
HPXT011
.
UPDATE
,
fXt0
0
1
);
private
void
modify
(
HPXT011
fXt0
1
1
)
{
HPXT011
dbXt0
11
=
HpXtUtils
.
HpXt011
.
lockAndGet
(
fXt01
1
);
this
.
checkData
(
fXt0
11
,
dbXt01
1
);
DaoUtils
.
update
(
HPXT011
.
UPDATE
,
fXt0
1
1
);
}
/**
...
...
@@ -117,15 +119,15 @@ public class ServiceHPXT011B extends ServiceEPBase {
/**
* 数据校验
*
* @param fXt0
0
1
* @param dbXt0
0
1
* @param fXt0
1
1
* @param dbXt0
1
1
*/
private
void
checkData
(
HPXT011
fXt0
01
,
HPXT011
dbXt00
1
)
{
String
noticeNo
=
fXt0
0
1
.
getNoticeNo
();
AssertUtils
.
isNull
(
dbXt0
0
1
,
String
.
format
(
"公告【%s】不存在"
,
noticeNo
));
AssertUtils
.
isNotEquals
(
dbXt0
0
1
.
getDeleteFlag
(),
CommonConstant
.
YesNo
.
NO_0
,
private
void
checkData
(
HPXT011
fXt0
11
,
HPXT011
dbXt01
1
)
{
String
noticeNo
=
fXt0
1
1
.
getNoticeNo
();
AssertUtils
.
isNull
(
dbXt0
1
1
,
String
.
format
(
"公告【%s】不存在"
,
noticeNo
));
AssertUtils
.
isNotEquals
(
dbXt0
1
1
.
getDeleteFlag
(),
CommonConstant
.
YesNo
.
NO_0
,
String
.
format
(
"公告【%s】不是\"未删除\"状态,不允许操作"
,
noticeNo
));
AssertUtils
.
isNotEquals
(
dbXt0
0
1
.
getStatus
(),
HPConstant
.
dealStatus
.
S0
,
AssertUtils
.
isNotEquals
(
dbXt0
1
1
.
getStatus
(),
HPConstant
.
dealStatus
.
S0
,
String
.
format
(
"公告【%s】不是\"未提交\"状态,不允许操作"
,
noticeNo
));
}
...
...
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