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
a419e009
Commit
a419e009
authored
Oct 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hp-smart
into dev-ly
parents
a2028008
aae057b2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
24 deletions
+60
-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
ServiceHPFW007.java
.../java/com/baosight/hpjx/hp/fw/service/ServiceHPFW007.java
+24
-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 @
a419e009
...
@@ -66,6 +66,8 @@ public class ServiceHPFW001B extends ServiceEPBase {
...
@@ -66,6 +66,8 @@ public class ServiceHPFW001B extends ServiceEPBase {
}
else
{
}
else
{
this
.
modify
(
fFw001
);
this
.
modify
(
fFw001
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw001
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW002B.java
View file @
a419e009
...
@@ -66,6 +66,8 @@ public class ServiceHPFW002B extends ServiceEPBase {
...
@@ -66,6 +66,8 @@ public class ServiceHPFW002B extends ServiceEPBase {
}
else
{
}
else
{
this
.
modify
(
fFw002
);
this
.
modify
(
fFw002
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw002
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW003B.java
View file @
a419e009
...
@@ -67,6 +67,8 @@ public class ServiceHPFW003B extends ServiceEPBase {
...
@@ -67,6 +67,8 @@ public class ServiceHPFW003B extends ServiceEPBase {
}
else
{
}
else
{
this
.
modify
(
fFw003
);
this
.
modify
(
fFw003
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw003
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW004B.java
View file @
a419e009
...
@@ -64,6 +64,8 @@ public class ServiceHPFW004B extends ServiceEPBase {
...
@@ -64,6 +64,8 @@ public class ServiceHPFW004B extends ServiceEPBase {
}
else
{
}
else
{
this
.
modify
(
fFw004
);
this
.
modify
(
fFw004
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw004
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW007.java
View file @
a419e009
package
com
.
baosight
.
hpjx
.
hp
.
fw
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
fw
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
...
@@ -9,15 +10,18 @@ import com.baosight.hpjx.hp.fw.constant.HpFwSqlConst;
...
@@ -9,15 +10,18 @@ import com.baosight.hpjx.hp.fw.constant.HpFwSqlConst;
import
com.baosight.hpjx.hp.fw.domain.HPFW007
;
import
com.baosight.hpjx.hp.fw.domain.HPFW007
;
import
com.baosight.hpjx.hp.fw.utils.HpFwUtils
;
import
com.baosight.hpjx.hp.fw.utils.HpFwUtils
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.MapUtils
;
import
com.baosight.hpjx.util.MapUtils
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -200,4 +204,24 @@ public class ServiceHPFW007 extends ServiceBase {
...
@@ -200,4 +204,24 @@ public class ServiceHPFW007 extends ServiceBase {
AssertUtils
.
isNotEquals
(
dbFw007
.
getStatus
(),
HPConstant
.
dealStatus
.
S0
,
AssertUtils
.
isNotEquals
(
dbFw007
.
getStatus
(),
HPConstant
.
dealStatus
.
S0
,
String
.
format
(
"回访单【%s】不是\"待回访\"状态,不允许操作"
,
folNo
));
String
.
format
(
"回访单【%s】不是\"待回访\"状态,不允许操作"
,
folNo
));
}
}
/**
* 销售单号
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"组织管理"
,
operType
=
"查询"
,
operDesc
=
"组下拉框"
)
public
EiInfo
querySaleNo
(
EiInfo
inInfo
)
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
SALE_NO_BLOCK_ID
);
CommonMethod
.
initBlock
(
inInfo
,
list
,
queryRow
,
false
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
}
}
src/main/java/com/baosight/hpjx/hp/fw/service/ServiceHPFW007B.java
View file @
a419e009
...
@@ -66,6 +66,8 @@ public class ServiceHPFW007B extends ServiceEPBase {
...
@@ -66,6 +66,8 @@ public class ServiceHPFW007B extends ServiceEPBase {
}
else
{
}
else
{
this
.
modify
(
fFw007
);
this
.
modify
(
fFw007
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fFw007
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/xt/service/ServiceHPXT011B.java
View file @
a419e009
...
@@ -57,14 +57,16 @@ public class ServiceHPXT011B extends ServiceEPBase {
...
@@ -57,14 +57,16 @@ public class ServiceHPXT011B extends ServiceEPBase {
*/
*/
public
EiInfo
save
(
EiInfo
inInfo
)
{
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
try
{
HPXT011
fXt0
0
1
=
MapUtils
.
toDaoEPBase
(
inInfo
,
HPXT011
.
class
);
HPXT011
fXt0
1
1
=
MapUtils
.
toDaoEPBase
(
inInfo
,
HPXT011
.
class
);
fXt0
01
.
setNoticeDate
(
DateUtils
.
formatShort
(
fXt00
1
.
getNoticeDate
()));
fXt0
11
.
setNoticeDate
(
DateUtils
.
formatShort
(
fXt01
1
.
getNoticeDate
()));
fXt0
01
.
setExpireDate
(
DateUtils
.
formatShort
(
fXt00
1
.
getExpireDate
()));
fXt0
11
.
setExpireDate
(
DateUtils
.
formatShort
(
fXt01
1
.
getExpireDate
()));
if
(
StringUtils
.
isBlank
(
fXt0
0
1
.
getNoticeNo
()))
{
if
(
StringUtils
.
isBlank
(
fXt0
1
1
.
getNoticeNo
()))
{
this
.
add
(
fXt0
0
1
);
this
.
add
(
fXt0
1
1
);
}
else
{
}
else
{
this
.
modify
(
fXt0
0
1
);
this
.
modify
(
fXt0
1
1
);
}
}
// 回填实体信息,移动端更新数据使用
inInfo
.
set
(
"detail"
,
fXt011
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -77,24 +79,24 @@ public class ServiceHPXT011B extends ServiceEPBase {
...
@@ -77,24 +79,24 @@ public class ServiceHPXT011B extends ServiceEPBase {
/**
/**
* 新增
* 新增
*
*
* @param fXt0
0
1
* @param fXt0
1
1
*/
*/
private
void
add
(
HPXT011
fXt0
0
1
)
{
private
void
add
(
HPXT011
fXt0
1
1
)
{
fXt0
0
1
.
setNoticeNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
NOTICE_NO
));
fXt0
1
1
.
setNoticeNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
NOTICE_NO
));
fXt0
0
1
.
setStatus
(
HPConstant
.
submitStatus
.
S0
);
fXt0
1
1
.
setStatus
(
HPConstant
.
submitStatus
.
S0
);
fXt0
0
1
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
fXt0
1
1
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
DaoUtils
.
insert
(
HPXT011
.
INSERT
,
fXt0
0
1
);
DaoUtils
.
insert
(
HPXT011
.
INSERT
,
fXt0
1
1
);
}
}
/**
/**
* 修改数据
* 修改数据
*
*
* @param fXt0
0
1
* @param fXt0
1
1
*/
*/
private
void
modify
(
HPXT011
fXt0
0
1
)
{
private
void
modify
(
HPXT011
fXt0
1
1
)
{
HPXT011
dbXt0
01
=
HpXtUtils
.
HpXt011
.
lockAndGet
(
fXt00
1
);
HPXT011
dbXt0
11
=
HpXtUtils
.
HpXt011
.
lockAndGet
(
fXt01
1
);
this
.
checkData
(
fXt0
01
,
dbXt00
1
);
this
.
checkData
(
fXt0
11
,
dbXt01
1
);
DaoUtils
.
update
(
HPXT011
.
UPDATE
,
fXt0
0
1
);
DaoUtils
.
update
(
HPXT011
.
UPDATE
,
fXt0
1
1
);
}
}
/**
/**
...
@@ -117,15 +119,15 @@ public class ServiceHPXT011B extends ServiceEPBase {
...
@@ -117,15 +119,15 @@ public class ServiceHPXT011B extends ServiceEPBase {
/**
/**
* 数据校验
* 数据校验
*
*
* @param fXt0
0
1
* @param fXt0
1
1
* @param dbXt0
0
1
* @param dbXt0
1
1
*/
*/
private
void
checkData
(
HPXT011
fXt0
01
,
HPXT011
dbXt00
1
)
{
private
void
checkData
(
HPXT011
fXt0
11
,
HPXT011
dbXt01
1
)
{
String
noticeNo
=
fXt0
0
1
.
getNoticeNo
();
String
noticeNo
=
fXt0
1
1
.
getNoticeNo
();
AssertUtils
.
isNull
(
dbXt0
0
1
,
String
.
format
(
"公告【%s】不存在"
,
noticeNo
));
AssertUtils
.
isNull
(
dbXt0
1
1
,
String
.
format
(
"公告【%s】不存在"
,
noticeNo
));
AssertUtils
.
isNotEquals
(
dbXt0
0
1
.
getDeleteFlag
(),
CommonConstant
.
YesNo
.
NO_0
,
AssertUtils
.
isNotEquals
(
dbXt0
1
1
.
getDeleteFlag
(),
CommonConstant
.
YesNo
.
NO_0
,
String
.
format
(
"公告【%s】不是\"未删除\"状态,不允许操作"
,
noticeNo
));
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
));
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