Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ry-crm
Project
Project
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
田光明
ry-crm
Commits
434d4f9f
Commit
434d4f9f
authored
Feb 26, 2025
by
EDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
ff705e07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
BaseContractInfoController.java
...i/web/controller/business/BaseContractInfoController.java
+3
-0
BaseContractInfo.java
...va/com/ruoyi/system/domain/business/BaseContractInfo.java
+3
-3
BaseContractInfoServiceImpl.java
...em/service/business/impl/BaseContractInfoServiceImpl.java
+9
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/BaseContractInfoController.java
View file @
434d4f9f
...
...
@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.business;
import
java.io.ByteArrayOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.InputStream
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Objects
;
...
...
@@ -112,6 +113,8 @@ public class BaseContractInfoController extends BaseController {
@Log
(
title
=
"合同信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
BaseContractInfo
baseContractInfo
)
{
baseContractInfo
.
setUpdateTime
(
new
Date
());
baseContractInfo
.
setUpdateBy
(
getLoginUser
().
getUser
().
getNickName
());
return
toAjax
(
baseContractInfoService
.
updateBaseContractInfo
(
baseContractInfo
,
getLoginUser
().
getUser
()));
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BaseContractInfo.java
View file @
434d4f9f
...
...
@@ -113,7 +113,7 @@ public class BaseContractInfo extends BaseEntity
/** 合同状态 */
@Excel
(
name
=
"合同状态"
)
private
Long
htzt
;
private
Integer
htzt
;
/** 付款方式 */
@Excel
(
name
=
"付款方式"
)
...
...
@@ -404,12 +404,12 @@ public class BaseContractInfo extends BaseEntity
{
return
qysj
;
}
public
void
setHtzt
(
Long
htzt
)
public
void
setHtzt
(
Integer
htzt
)
{
this
.
htzt
=
htzt
;
}
public
Long
getHtzt
()
public
Integer
getHtzt
()
{
return
htzt
;
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/business/impl/BaseContractInfoServiceImpl.java
View file @
434d4f9f
...
...
@@ -88,6 +88,9 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
*/
@Override
public
int
insertBaseContractInfo
(
BaseContractInfo
baseContractInfo
)
{
if
(
baseContractInfo
.
getKhmc
()
==
null
)
{
baseContractInfo
.
setKhmc
(
"/"
);
}
int
result
=
baseContractInfoMapper
.
insertBaseContractInfo
(
baseContractInfo
);
baseContractInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
...
...
@@ -119,6 +122,12 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
public
int
updateBaseContractInfo
(
BaseContractInfo
baseContractInfo
,
SysUser
user
)
{
baseContractInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
if
(
baseContractInfo
.
getShzt
()
!=
null
)
{
if
(
baseContractInfo
.
getShzt
()
==
1
)
{
baseContractInfo
.
setHtzt
(
7
);
}
if
(
baseContractInfo
.
getShzt
()
==
0
)
{
baseContractInfo
.
setHtzt
(
6
);
}
baseContractInfo
.
setShrId
(
user
.
getUserId
());
baseContractInfo
.
setShrName
(
user
.
getNickName
());
BaseContractAuditRecord
baseContractAuditRecord
=
new
BaseContractAuditRecord
();
...
...
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