Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c2e3c616
authored
Apr 08, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加查询/修改客户档案到接口层
1 parent
bb67c29e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
2 deletions
rpc-dj-mindworkplate-api/pom.xml
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/remote/ReceptionCustomerFileRemote.java
rpc-dj-mindworkplate/pom.xml
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/remote/ReceptionCustomerFileRemoteImpl.java
rpc-dj-mindworkplate-api/pom.xml
View file @
c2e3c61
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</parent>
</parent>
<groupId>
cn.com.glsx
</groupId>
<groupId>
cn.com.glsx
</groupId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<version>
5.7.0-SNAPSHOT
</version>
<version>
5.7.
1
0-SNAPSHOT
</version>
<name>
rpc-dj-mindworkplate-api
</name>
<name>
rpc-dj-mindworkplate-api
</name>
<properties>
<properties>
<deploy.scanPackage>
cn.com.glsx.remote
</deploy.scanPackage>
<deploy.scanPackage>
cn.com.glsx.remote
</deploy.scanPackage>
...
...
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/remote/ReceptionCustomerFileRemote.java
0 → 100644
View file @
c2e3c61
package
cn
.
com
.
glsx
.
dj
.
mindworkplate
.
remote
;
import
cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileDetailDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileUpdateRequestDTO
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
public
interface
ReceptionCustomerFileRemote
{
RpcResponse
<
ReceptionCustomerFileDetailDTO
>
findDetailByReceptionId
(
Integer
receptionId
);
RpcResponse
<
Boolean
>
updateCustomerFile
(
ReceptionCustomerFileUpdateRequestDTO
request
);
}
rpc-dj-mindworkplate/pom.xml
View file @
c2e3c61
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx
</groupId>
<groupId>
cn.com.glsx
</groupId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<version>
5.7.0-SNAPSHOT
</version>
<version>
5.7.
1
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.com.glsx.dj
</groupId>
<groupId>
cn.com.glsx.dj
</groupId>
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/remote/ReceptionCustomerFileRemoteImpl.java
0 → 100644
View file @
c2e3c61
package
cn
.
com
.
glsx
.
dj
.
mindworkplate
.
remote
;
import
cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileDetailDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileUpdateRequestDTO
;
import
cn.com.glsx.dj.mindworkplate.service.customer.ReceptionCustomerFileGenerateService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.annotation.DubboService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
@Slf4j
@DubboService
(
protocol
=
"dubbo"
)
@Component
public
class
ReceptionCustomerFileRemoteImpl
implements
ReceptionCustomerFileRemote
{
@Autowired
private
ReceptionCustomerFileGenerateService
receptionCustomerFileGenerateService
;
@Override
public
RpcResponse
<
ReceptionCustomerFileDetailDTO
>
findDetailByReceptionId
(
Integer
receptionId
)
{
try
{
ReceptionCustomerFileDetailDTO
result
=
receptionCustomerFileGenerateService
.
findDetailByReceptionId
(
receptionId
);
return
RpcResponse
.
success
(
result
);
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"查询客户档案详情接口调用异常!"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询客户档案详情接口调用异常!"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
@Override
public
RpcResponse
<
Boolean
>
updateCustomerFile
(
ReceptionCustomerFileUpdateRequestDTO
request
)
{
try
{
boolean
result
=
receptionCustomerFileGenerateService
.
updateCustomerFile
(
request
);
return
RpcResponse
.
success
(
result
);
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"更新客户档案接口调用异常!"
,
e
);
return
RpcResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"更新客户档案接口调用异常!"
,
e
);
return
RpcResponse
.
error
(
e
);
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment