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
2fee52f9
Commit
2fee52f9
authored
Jun 05, 2025
by
EDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
c1dfdbe0
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
103 additions
and
31 deletions
+103
-31
BaseInvoiceInfoController.java
...yi/web/controller/business/BaseInvoiceInfoController.java
+3
-0
CommonController.java
...ava/com/ruoyi/web/controller/common/CommonController.java
+6
-4
SysDeptController.java
...va/com/ruoyi/web/controller/system/SysDeptController.java
+4
-4
SysUserController.java
...va/com/ruoyi/web/controller/system/SysUserController.java
+2
-2
BaseContractInfo.java
...va/com/ruoyi/system/domain/business/BaseContractInfo.java
+2
-0
BaseCustomInfo.java
...java/com/ruoyi/system/domain/business/BaseCustomInfo.java
+5
-1
BaseInvoiceInfo.java
...ava/com/ruoyi/system/domain/business/BaseInvoiceInfo.java
+7
-0
BasePaymentCollectionInfo.java
...oyi/system/domain/business/BasePaymentCollectionInfo.java
+5
-1
BaseContractInfoServiceImpl.java
...em/service/business/impl/BaseContractInfoServiceImpl.java
+7
-1
BaseInvoiceInfoServiceImpl.java
...tem/service/business/impl/BaseInvoiceInfoServiceImpl.java
+19
-0
BasePaymentCollectionInfoServiceImpl.java
...e/business/impl/BasePaymentCollectionInfoServiceImpl.java
+25
-14
BaseContractInfoMapper.xml
...main/resources/mapper/business/BaseContractInfoMapper.xml
+1
-1
BaseCustomInfoMapper.xml
...c/main/resources/mapper/business/BaseCustomInfoMapper.xml
+6
-1
BaseInvoiceInfoMapper.xml
.../main/resources/mapper/business/BaseInvoiceInfoMapper.xml
+5
-1
BasePaymentCollectionInfoMapper.xml
...urces/mapper/business/BasePaymentCollectionInfoMapper.xml
+6
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/BaseInvoiceInfoController.java
View file @
2fee52f9
...
@@ -79,6 +79,8 @@ public class BaseInvoiceInfoController extends BaseController
...
@@ -79,6 +79,8 @@ public class BaseInvoiceInfoController extends BaseController
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
BaseInvoiceInfo
baseInvoiceInfo
)
public
AjaxResult
add
(
@RequestBody
BaseInvoiceInfo
baseInvoiceInfo
)
{
{
baseInvoiceInfo
.
setCreateBy
(
getLoginUser
().
getUser
().
getNickName
());
baseInvoiceInfo
.
setSqr
(
getLoginUser
().
getUser
().
getNickName
());
return
toAjax
(
baseInvoiceInfoService
.
insertBaseInvoiceInfo
(
baseInvoiceInfo
));
return
toAjax
(
baseInvoiceInfoService
.
insertBaseInvoiceInfo
(
baseInvoiceInfo
));
}
}
...
@@ -98,6 +100,7 @@ public class BaseInvoiceInfoController extends BaseController
...
@@ -98,6 +100,7 @@ public class BaseInvoiceInfoController extends BaseController
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
BaseInvoiceInfo
baseInvoiceInfo
)
public
AjaxResult
edit
(
@RequestBody
BaseInvoiceInfo
baseInvoiceInfo
)
{
{
baseInvoiceInfo
.
setUpdateBy
(
getLoginUser
().
getUser
().
getNickName
());
return
toAjax
(
baseInvoiceInfoService
.
updateBaseInvoiceInfo
(
baseInvoiceInfo
,
getLoginUser
().
getUser
()));
return
toAjax
(
baseInvoiceInfoService
.
updateBaseInvoiceInfo
(
baseInvoiceInfo
,
getLoginUser
().
getUser
()));
}
}
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
View file @
2fee52f9
...
@@ -23,7 +23,7 @@ import com.ruoyi.framework.config.ServerConfig;
...
@@ -23,7 +23,7 @@ import com.ruoyi.framework.config.ServerConfig;
/**
/**
* 通用请求处理
* 通用请求处理
*
*
* @author ruoyi
* @author ruoyi
*/
*/
@RestController
@RestController
...
@@ -37,9 +37,11 @@ public class CommonController
...
@@ -37,9 +37,11 @@ public class CommonController
private
static
final
String
FILE_DELIMETER
=
","
;
private
static
final
String
FILE_DELIMETER
=
","
;
private
static
final
String
SERVER_URL
=
"http://ly.yoloapp.cn/"
;
/**
/**
* 通用下载请求
* 通用下载请求
*
*
* @param fileName 文件名称
* @param fileName 文件名称
* @param delete 是否删除
* @param delete 是否删除
*/
*/
...
@@ -81,7 +83,7 @@ public class CommonController
...
@@ -81,7 +83,7 @@ public class CommonController
String
filePath
=
RuoYiConfig
.
getUploadPath
();
String
filePath
=
RuoYiConfig
.
getUploadPath
();
// 上传并返回新文件名称
// 上传并返回新文件名称
String
fileName
=
FileUploadUtils
.
upload
(
filePath
,
file
);
String
fileName
=
FileUploadUtils
.
upload
(
filePath
,
file
);
String
url
=
serverConfig
.
getUrl
()
+
fileName
;
String
url
=
SERVER_URL
+
fileName
;
AjaxResult
ajax
=
AjaxResult
.
success
();
AjaxResult
ajax
=
AjaxResult
.
success
();
ajax
.
put
(
"url"
,
url
);
ajax
.
put
(
"url"
,
url
);
ajax
.
put
(
"fileName"
,
fileName
);
ajax
.
put
(
"fileName"
,
fileName
);
...
@@ -113,7 +115,7 @@ public class CommonController
...
@@ -113,7 +115,7 @@ public class CommonController
{
{
// 上传并返回新文件名称
// 上传并返回新文件名称
String
fileName
=
FileUploadUtils
.
upload
(
filePath
,
file
);
String
fileName
=
FileUploadUtils
.
upload
(
filePath
,
file
);
String
url
=
serverConfig
.
getUrl
()
+
fileName
;
String
url
=
SERVER_URL
+
fileName
;
urls
.
add
(
url
);
urls
.
add
(
url
);
fileNames
.
add
(
fileName
);
fileNames
.
add
(
fileName
);
newFileNames
.
add
(
FileUtils
.
getName
(
fileName
));
newFileNames
.
add
(
FileUtils
.
getName
(
fileName
));
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java
View file @
2fee52f9
...
@@ -24,7 +24,7 @@ import com.ruoyi.system.service.ISysDeptService;
...
@@ -24,7 +24,7 @@ import com.ruoyi.system.service.ISysDeptService;
/**
/**
* 部门信息
* 部门信息
*
*
* @author ruoyi
* @author ruoyi
*/
*/
@RestController
@RestController
...
@@ -37,7 +37,7 @@ public class SysDeptController extends BaseController
...
@@ -37,7 +37,7 @@ public class SysDeptController extends BaseController
/**
/**
* 获取部门列表
* 获取部门列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:dept:list')"
)
//
@PreAuthorize("@ss.hasPermi('system:dept:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
AjaxResult
list
(
SysDept
dept
)
public
AjaxResult
list
(
SysDept
dept
)
{
{
...
@@ -48,7 +48,7 @@ public class SysDeptController extends BaseController
...
@@ -48,7 +48,7 @@ public class SysDeptController extends BaseController
/**
/**
* 查询部门列表(排除节点)
* 查询部门列表(排除节点)
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:dept:list')"
)
//
@PreAuthorize("@ss.hasPermi('system:dept:list')")
@GetMapping
(
"/list/exclude/{deptId}"
)
@GetMapping
(
"/list/exclude/{deptId}"
)
public
AjaxResult
excludeChild
(
@PathVariable
(
value
=
"deptId"
,
required
=
false
)
Long
deptId
)
public
AjaxResult
excludeChild
(
@PathVariable
(
value
=
"deptId"
,
required
=
false
)
Long
deptId
)
{
{
...
@@ -60,7 +60,7 @@ public class SysDeptController extends BaseController
...
@@ -60,7 +60,7 @@ public class SysDeptController extends BaseController
/**
/**
* 根据部门编号获取详细信息
* 根据部门编号获取详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:dept:query')"
)
//
@PreAuthorize("@ss.hasPermi('system:dept:query')")
@GetMapping
(
value
=
"/{deptId}"
)
@GetMapping
(
value
=
"/{deptId}"
)
public
AjaxResult
getInfo
(
@PathVariable
Long
deptId
)
public
AjaxResult
getInfo
(
@PathVariable
Long
deptId
)
{
{
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
View file @
2fee52f9
...
@@ -34,7 +34,7 @@ import com.ruoyi.system.service.ISysUserService;
...
@@ -34,7 +34,7 @@ import com.ruoyi.system.service.ISysUserService;
/**
/**
* 用户信息
* 用户信息
*
*
* @author ruoyi
* @author ruoyi
*/
*/
@RestController
@RestController
...
@@ -56,7 +56,7 @@ public class SysUserController extends BaseController
...
@@ -56,7 +56,7 @@ public class SysUserController extends BaseController
/**
/**
* 获取用户列表
* 获取用户列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:user:list')"
)
//
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SysUser
user
)
public
TableDataInfo
list
(
SysUser
user
)
{
{
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BaseContractInfo.java
View file @
2fee52f9
...
@@ -144,6 +144,8 @@ public class BaseContractInfo extends BaseEntity
...
@@ -144,6 +144,8 @@ public class BaseContractInfo extends BaseEntity
@Excel
(
name
=
"合同总额"
)
@Excel
(
name
=
"合同总额"
)
private
BigDecimal
htze
;
private
BigDecimal
htze
;
private
String
htzedx
;
/** 回款金额 */
/** 回款金额 */
@Excel
(
name
=
"回款金额"
)
@Excel
(
name
=
"回款金额"
)
private
BigDecimal
hkje
;
private
BigDecimal
hkje
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BaseCustomInfo.java
View file @
2fee52f9
...
@@ -32,10 +32,14 @@ public class BaseCustomInfo extends BaseEntity
...
@@ -32,10 +32,14 @@ public class BaseCustomInfo extends BaseEntity
@Excel
(
name
=
"客户公司"
)
@Excel
(
name
=
"客户公司"
)
private
String
khgs
;
private
String
khgs
;
/** 客户
类型
*/
/** 客户
来源
*/
@Excel
(
name
=
"客户来源"
,
readConverterExp
=
"1=软艺,2=软通,3=网联,4=软盈,5=渠道"
)
@Excel
(
name
=
"客户来源"
,
readConverterExp
=
"1=软艺,2=软通,3=网联,4=软盈,5=渠道"
)
private
Long
khly
;
private
Long
khly
;
/** 客户类型 */
@Excel
(
name
=
"客户类型"
,
readConverterExp
=
"1=公司,2=个人"
)
private
Long
khlx
;
/** 产品类别 */
/** 产品类别 */
@Excel
(
name
=
"产品类别"
,
readConverterExp
=
"1=APP,2=PC,3=小程序,4=H5"
)
@Excel
(
name
=
"产品类别"
,
readConverterExp
=
"1=APP,2=PC,3=小程序,4=H5"
)
private
Long
cplb
;
private
Long
cplb
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BaseInvoiceInfo.java
View file @
2fee52f9
...
@@ -55,6 +55,9 @@ public class BaseInvoiceInfo extends BaseEntity
...
@@ -55,6 +55,9 @@ public class BaseInvoiceInfo extends BaseEntity
@Excel
(
name
=
"合同名称"
)
@Excel
(
name
=
"合同名称"
)
private
String
htmc
;
private
String
htmc
;
/** 回款单id */
private
Long
paymentId
;
/** 回款金额 */
/** 回款金额 */
@Excel
(
name
=
"回款金额"
)
@Excel
(
name
=
"回款金额"
)
private
BigDecimal
hkje
;
private
BigDecimal
hkje
;
...
@@ -79,6 +82,10 @@ public class BaseInvoiceInfo extends BaseEntity
...
@@ -79,6 +82,10 @@ public class BaseInvoiceInfo extends BaseEntity
@Excel
(
name
=
"开票金额"
)
@Excel
(
name
=
"开票金额"
)
private
BigDecimal
kpje
;
private
BigDecimal
kpje
;
/** 付款方式 */
@Excel
(
name
=
"付款方式"
)
private
Integer
fkfs
;
/** 发票税额 */
/** 发票税额 */
@Excel
(
name
=
"发票税额"
)
@Excel
(
name
=
"发票税额"
)
private
BigDecimal
fpse
;
private
BigDecimal
fpse
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BasePaymentCollectionInfo.java
View file @
2fee52f9
...
@@ -52,7 +52,11 @@ public class BasePaymentCollectionInfo extends BaseEntity
...
@@ -52,7 +52,11 @@ public class BasePaymentCollectionInfo extends BaseEntity
/** 回款方式 */
/** 回款方式 */
@Excel
(
name
=
"回款方式"
)
@Excel
(
name
=
"回款方式"
)
private
Long
hkfs
;
private
Integer
hkfs
;
/** 开票状态 */
@Excel
(
name
=
"开票状态"
)
private
Integer
kpzt
;
/** 回款凭证 */
/** 回款凭证 */
@Excel
(
name
=
"回款凭证"
)
@Excel
(
name
=
"回款凭证"
)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/business/impl/BaseContractInfoServiceImpl.java
View file @
2fee52f9
...
@@ -7,9 +7,11 @@ import java.util.Date;
...
@@ -7,9 +7,11 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.MoneyConverter
;
import
com.ruoyi.common.utils.MoneyConverter
;
import
com.ruoyi.system.domain.business.BaseContractAuditRecord
;
import
com.ruoyi.system.domain.business.BaseContractAuditRecord
;
...
@@ -59,6 +61,9 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
...
@@ -59,6 +61,9 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
public
BaseContractInfo
selectBaseContractInfoById
(
Long
id
)
{
public
BaseContractInfo
selectBaseContractInfoById
(
Long
id
)
{
BaseContractInfo
baseContractInfo
=
baseContractInfoMapper
.
selectBaseContractInfoById
(
id
);
BaseContractInfo
baseContractInfo
=
baseContractInfoMapper
.
selectBaseContractInfoById
(
id
);
if
(
ObjectUtil
.
isNull
(
baseContractInfo
))
{
throw
new
ServiceException
(
"关联合同已被删除!!"
);
}
if
(
ObjectUtil
.
isNotEmpty
(
baseContractInfo
))
{
if
(
ObjectUtil
.
isNotEmpty
(
baseContractInfo
))
{
List
<
BaseContractPeriodsInfo
>
baseContractPeriodsInfos
=
baseContractPeriodsInfoMapper
.
selectBaseContractPeriodsInfoByContractId
(
baseContractInfo
.
getId
());
List
<
BaseContractPeriodsInfo
>
baseContractPeriodsInfos
=
baseContractPeriodsInfoMapper
.
selectBaseContractPeriodsInfoByContractId
(
baseContractInfo
.
getId
());
baseContractInfo
.
setBaseContractPeriodsInfos
(
baseContractPeriodsInfos
);
baseContractInfo
.
setBaseContractPeriodsInfos
(
baseContractPeriodsInfos
);
...
@@ -66,6 +71,7 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
...
@@ -66,6 +71,7 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
List
<
BaseContractAuditRecord
>
baseContractAuditRecords
=
baseContractAuditRecordMapper
.
selectBaseContractAuditRecordByContractId
(
baseContractInfo
.
getId
());
List
<
BaseContractAuditRecord
>
baseContractAuditRecords
=
baseContractAuditRecordMapper
.
selectBaseContractAuditRecordByContractId
(
baseContractInfo
.
getId
());
baseContractInfo
.
setBaseContractAuditRecords
(
baseContractAuditRecords
);
baseContractInfo
.
setBaseContractAuditRecords
(
baseContractAuditRecords
);
}
}
baseContractInfo
.
setHtzedx
(
MoneyConverter
.
convert
(
baseContractInfo
.
getHtze
()));
return
baseContractInfo
;
return
baseContractInfo
;
}
}
...
@@ -219,7 +225,7 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
...
@@ -219,7 +225,7 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
baseContractPeriod
.
setQs
(
"四期"
);
baseContractPeriod
.
setQs
(
"四期"
);
break
;
break
;
}
}
BigDecimal
amount
=
baseContractInfo
.
getHtze
().
divide
(
BigDecimal
.
valueOf
(
100
)
,
RoundingMode
.
UP
).
multiply
(
new
BigDecimal
(
split
[
i
])).
setScale
(
0
,
RoundingMode
.
UP
);
BigDecimal
amount
=
baseContractInfo
.
getHtze
().
divide
(
BigDecimal
.
valueOf
(
100
)
).
multiply
(
new
BigDecimal
(
split
[
i
])
);
baseContractPeriod
.
setJe
(
amount
);
baseContractPeriod
.
setJe
(
amount
);
baseContractPeriod
.
setMs
(
MoneyConverter
.
convert
(
amount
));
baseContractPeriod
.
setMs
(
MoneyConverter
.
convert
(
amount
));
result
.
add
(
baseContractPeriod
);
result
.
add
(
baseContractPeriod
);
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/business/impl/BaseInvoiceInfoServiceImpl.java
View file @
2fee52f9
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysRole
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
...
@@ -11,9 +12,11 @@ import com.ruoyi.common.utils.DateUtils;
...
@@ -11,9 +12,11 @@ import com.ruoyi.common.utils.DateUtils;
import
com.ruoyi.system.domain.business.BaseContractInfo
;
import
com.ruoyi.system.domain.business.BaseContractInfo
;
import
com.ruoyi.system.domain.business.BaseInvoiceAuditRecord
;
import
com.ruoyi.system.domain.business.BaseInvoiceAuditRecord
;
import
com.ruoyi.system.domain.business.BaseInvoiceInfo
;
import
com.ruoyi.system.domain.business.BaseInvoiceInfo
;
import
com.ruoyi.system.domain.business.BasePaymentCollectionInfo
;
import
com.ruoyi.system.mapper.SysRoleMapper
;
import
com.ruoyi.system.mapper.SysRoleMapper
;
import
com.ruoyi.system.mapper.business.BaseInvoiceAuditRecordMapper
;
import
com.ruoyi.system.mapper.business.BaseInvoiceAuditRecordMapper
;
import
com.ruoyi.system.mapper.business.BaseInvoiceInfoMapper
;
import
com.ruoyi.system.mapper.business.BaseInvoiceInfoMapper
;
import
com.ruoyi.system.mapper.business.BasePaymentCollectionInfoMapper
;
import
com.ruoyi.system.service.business.IBaseInvoiceInfoService
;
import
com.ruoyi.system.service.business.IBaseInvoiceInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -36,6 +39,9 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
...
@@ -36,6 +39,9 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
@Autowired
@Autowired
private
SysRoleMapper
sysRoleMapper
;
private
SysRoleMapper
sysRoleMapper
;
@Autowired
private
BasePaymentCollectionInfoMapper
basePaymentCollectionInfoMapper
;
/**
/**
* 查询开票信息
* 查询开票信息
*
*
...
@@ -77,6 +83,8 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
...
@@ -77,6 +83,8 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
public
int
insertBaseInvoiceInfo
(
BaseInvoiceInfo
baseInvoiceInfo
)
public
int
insertBaseInvoiceInfo
(
BaseInvoiceInfo
baseInvoiceInfo
)
{
{
baseInvoiceInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
baseInvoiceInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
BasePaymentCollectionInfo
basePaymentCollectionInfo
=
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoById
(
baseInvoiceInfo
.
getPaymentId
());
baseInvoiceInfo
.
setFkfs
(
basePaymentCollectionInfo
.
getHkfs
());
return
baseInvoiceInfoMapper
.
insertBaseInvoiceInfo
(
baseInvoiceInfo
);
return
baseInvoiceInfoMapper
.
insertBaseInvoiceInfo
(
baseInvoiceInfo
);
}
}
...
@@ -117,6 +125,17 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
...
@@ -117,6 +125,17 @@ public class BaseInvoiceInfoServiceImpl implements IBaseInvoiceInfoService
baseInvoiceInfo
.
setShrId
(
user
.
getUserId
());
baseInvoiceInfo
.
setShrId
(
user
.
getUserId
());
baseInvoiceInfo
.
setShrName
(
user
.
getNickName
());
baseInvoiceInfo
.
setShrName
(
user
.
getNickName
());
BasePaymentCollectionInfo
basePayment
=
new
BasePaymentCollectionInfo
();
basePayment
.
setInvoiceId
(
baseInvoiceInfo
.
getId
());
List
<
BasePaymentCollectionInfo
>
basePaymentCollectionInfos
=
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoList
(
basePayment
);
if
(
ObjectUtil
.
isNotEmpty
(
basePaymentCollectionInfos
))
{
for
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
:
basePaymentCollectionInfos
)
{
basePaymentCollectionInfo
.
setKpzt
(
1
);
basePaymentCollectionInfo
.
setUpdateBy
(
user
.
getNickName
());
basePaymentCollectionInfoMapper
.
updateBasePaymentCollectionInfo
(
basePaymentCollectionInfo
);
}
}
}
}
if
(
baseInvoiceInfo
.
getFpzt
()
!=
null
&&
baseInvoiceInfo
.
getFpzt
()
==
4
)
{
if
(
baseInvoiceInfo
.
getFpzt
()
!=
null
&&
baseInvoiceInfo
.
getFpzt
()
==
4
)
{
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/business/impl/BasePaymentCollectionInfoServiceImpl.java
View file @
2fee52f9
package
com
.
ruoyi
.
system
.
service
.
business
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
business
.
impl
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.domain.business.BaseContractInfo
;
import
com.ruoyi.system.domain.business.BasePaymentCollectionInfo
;
import
com.ruoyi.system.domain.business.BasePaymentCollectionInfo
;
import
com.ruoyi.system.mapper.business.BaseContractInfoMapper
;
import
com.ruoyi.system.mapper.business.BasePaymentCollectionInfoMapper
;
import
com.ruoyi.system.mapper.business.BasePaymentCollectionInfoMapper
;
import
com.ruoyi.system.service.business.IBasePaymentCollectionInfoService
;
import
com.ruoyi.system.service.business.IBasePaymentCollectionInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -16,11 +20,13 @@ import org.springframework.stereotype.Service;
...
@@ -16,11 +20,13 @@ import org.springframework.stereotype.Service;
* @date 2025-02-10
* @date 2025-02-10
*/
*/
@Service
@Service
public
class
BasePaymentCollectionInfoServiceImpl
implements
IBasePaymentCollectionInfoService
public
class
BasePaymentCollectionInfoServiceImpl
implements
IBasePaymentCollectionInfoService
{
{
@Autowired
@Autowired
private
BasePaymentCollectionInfoMapper
basePaymentCollectionInfoMapper
;
private
BasePaymentCollectionInfoMapper
basePaymentCollectionInfoMapper
;
@Autowired
private
BaseContractInfoMapper
baseContractInfoMapper
;
/**
/**
* 查询回款信息
* 查询回款信息
*
*
...
@@ -28,8 +34,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -28,8 +34,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 回款信息
* @return 回款信息
*/
*/
@Override
@Override
public
BasePaymentCollectionInfo
selectBasePaymentCollectionInfoById
(
Long
id
)
public
BasePaymentCollectionInfo
selectBasePaymentCollectionInfoById
(
Long
id
)
{
{
return
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoById
(
id
);
return
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoById
(
id
);
}
}
...
@@ -40,8 +45,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -40,8 +45,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 回款信息
* @return 回款信息
*/
*/
@Override
@Override
public
List
<
BasePaymentCollectionInfo
>
selectBasePaymentCollectionInfoList
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
public
List
<
BasePaymentCollectionInfo
>
selectBasePaymentCollectionInfoList
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
{
{
return
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoList
(
basePaymentCollectionInfo
);
return
basePaymentCollectionInfoMapper
.
selectBasePaymentCollectionInfoList
(
basePaymentCollectionInfo
);
}
}
...
@@ -52,8 +56,18 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -52,8 +56,18 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
insertBasePaymentCollectionInfo
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
public
int
insertBasePaymentCollectionInfo
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
{
{
BaseContractInfo
baseContractInfo
=
baseContractInfoMapper
.
selectBaseContractInfoById
(
basePaymentCollectionInfo
.
getContractId
());
if
(
baseContractInfo
!=
null
)
{
if
(
basePaymentCollectionInfo
.
getDzFlag
()
==
1
&&
basePaymentCollectionInfo
.
getHkje
()
!=
null
)
{
BigDecimal
hkje
=
baseContractInfo
.
getHkje
();
if
(
hkje
==
null
)
{
hkje
=
BigDecimal
.
ZERO
;
}
baseContractInfo
.
setHkje
(
hkje
.
add
(
basePaymentCollectionInfo
.
getHkje
()));
baseContractInfoMapper
.
updateBaseContractInfo
(
baseContractInfo
);
}
}
basePaymentCollectionInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
basePaymentCollectionInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
basePaymentCollectionInfoMapper
.
insertBasePaymentCollectionInfo
(
basePaymentCollectionInfo
);
return
basePaymentCollectionInfoMapper
.
insertBasePaymentCollectionInfo
(
basePaymentCollectionInfo
);
}
}
...
@@ -65,8 +79,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -65,8 +79,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
updateBasePaymentCollectionInfo
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
public
int
updateBasePaymentCollectionInfo
(
BasePaymentCollectionInfo
basePaymentCollectionInfo
)
{
{
basePaymentCollectionInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
basePaymentCollectionInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
basePaymentCollectionInfoMapper
.
updateBasePaymentCollectionInfo
(
basePaymentCollectionInfo
);
return
basePaymentCollectionInfoMapper
.
updateBasePaymentCollectionInfo
(
basePaymentCollectionInfo
);
}
}
...
@@ -78,8 +91,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -78,8 +91,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
deleteBasePaymentCollectionInfoByIds
(
Long
[]
ids
)
public
int
deleteBasePaymentCollectionInfoByIds
(
Long
[]
ids
)
{
{
return
basePaymentCollectionInfoMapper
.
deleteBasePaymentCollectionInfoByIds
(
ids
);
return
basePaymentCollectionInfoMapper
.
deleteBasePaymentCollectionInfoByIds
(
ids
);
}
}
...
@@ -90,8 +102,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
...
@@ -90,8 +102,7 @@ public class BasePaymentCollectionInfoServiceImpl implements IBasePaymentCollect
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
deleteBasePaymentCollectionInfoById
(
Long
id
)
public
int
deleteBasePaymentCollectionInfoById
(
Long
id
)
{
{
return
basePaymentCollectionInfoMapper
.
deleteBasePaymentCollectionInfoById
(
id
);
return
basePaymentCollectionInfoMapper
.
deleteBasePaymentCollectionInfoById
(
id
);
}
}
}
}
ruoyi-system/src/main/resources/mapper/business/BaseContractInfoMapper.xml
View file @
2fee52f9
...
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"qysj != null "
>
and qysj = #{qysj}
</if>
<if
test=
"qysj != null "
>
and qysj = #{qysj}
</if>
<if
test=
"htzt != null "
>
and htzt = #{htzt}
</if>
<if
test=
"htzt != null "
>
and htzt = #{htzt}
</if>
<if
test=
"fkfs != null "
>
and fkfs = #{fkfs}
</if>
<if
test=
"fkfs != null "
>
and fkfs = #{fkfs}
</if>
<if
test=
"htsxsj != null
"
>
and htsxsj = #{fkfs
}
</if>
<if
test=
"htsxsj != null
and htzzsj != null "
>
and qysj between #{htsxsj} and #{htzzsj
}
</if>
<if
test=
"qs != null "
>
and qs = #{qs}
</if>
<if
test=
"qs != null "
>
and qs = #{qs}
</if>
<if
test=
"htze != null "
>
and htze = #{htze}
</if>
<if
test=
"htze != null "
>
and htze = #{htze}
</if>
<if
test=
"fkbl != null and fkbl != ''"
>
and fkbl = #{fkbl}
</if>
<if
test=
"fkbl != null and fkbl != ''"
>
and fkbl = #{fkbl}
</if>
...
...
ruoyi-system/src/main/resources/mapper/business/BaseCustomInfoMapper.xml
View file @
2fee52f9
...
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectBaseCustomInfoVo"
>
<sql
id=
"selectBaseCustomInfoVo"
>
select id, khxm, khgs, khly, cplb, sjh, wx, khdz, khxq, khhy, yxdj, khzt, gs, fzr,bq,bz, delete_flag, create_time, create_by, update_time, update_by from base_custom_info
select id, khxm, khgs, khly,
khlx,
cplb, sjh, wx, khdz, khxq, khhy, yxdj, khzt, gs, fzr,bq,bz, delete_flag, create_time, create_by, update_time, update_by from base_custom_info
</sql>
</sql>
<select
id=
"selectBaseCustomInfoList"
parameterType=
"BaseCustomInfo"
resultMap=
"BaseCustomInfoResult"
>
<select
id=
"selectBaseCustomInfoList"
parameterType=
"BaseCustomInfo"
resultMap=
"BaseCustomInfoResult"
>
...
@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khxm != null and khxm != ''"
>
and a.khxm = #{khxm}
</if>
<if
test=
"khxm != null and khxm != ''"
>
and a.khxm = #{khxm}
</if>
<if
test=
"khgs != null and khgs != ''"
>
and a.khgs = #{khgs}
</if>
<if
test=
"khgs != null and khgs != ''"
>
and a.khgs = #{khgs}
</if>
<if
test=
"khly != null "
>
and a.khly = #{khly}
</if>
<if
test=
"khly != null "
>
and a.khly = #{khly}
</if>
<if
test=
"khlx != null "
>
and a.khlx = #{khlx}
</if>
<if
test=
"cplb != null "
>
and a.cplb = #{cplb}
</if>
<if
test=
"cplb != null "
>
and a.cplb = #{cplb}
</if>
<if
test=
"sjh != null and sjh != ''"
>
and a.sjh like concat('%', #{sjh}, '%')
</if>
<if
test=
"sjh != null and sjh != ''"
>
and a.sjh like concat('%', #{sjh}, '%')
</if>
<if
test=
"wx != null and wx != ''"
>
and a.wx = #{wx}
</if>
<if
test=
"wx != null and wx != ''"
>
and a.wx = #{wx}
</if>
...
@@ -88,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -88,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"rubbishFlag != null and rubbishFlag == 1"
>
and a.khzt = 7
</if>
<if
test=
"rubbishFlag != null and rubbishFlag == 1"
>
and a.khzt = 7
</if>
<if
test=
"rubbishFlag != null and rubbishFlag == 0"
>
and a.khzt not in (7)
</if>
<if
test=
"rubbishFlag != null and rubbishFlag == 0"
>
and a.khzt not in (7)
</if>
</where>
</where>
group BY a.id
ORDER BY
ORDER BY
CASE WHEN b.id IS NOT NULL THEN 0 ELSE 1 END,
CASE WHEN b.id IS NOT NULL THEN 0 ELSE 1 END,
a.yxdj DESC,
a.yxdj DESC,
...
@@ -105,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -105,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khxm != null"
>
khxm,
</if>
<if
test=
"khxm != null"
>
khxm,
</if>
<if
test=
"khgs != null"
>
khgs,
</if>
<if
test=
"khgs != null"
>
khgs,
</if>
<if
test=
"khly != null"
>
khly,
</if>
<if
test=
"khly != null"
>
khly,
</if>
<if
test=
"khlx != null"
>
khlx,
</if>
<if
test=
"cplb != null"
>
cplb,
</if>
<if
test=
"cplb != null"
>
cplb,
</if>
<if
test=
"sjh != null"
>
sjh,
</if>
<if
test=
"sjh != null"
>
sjh,
</if>
<if
test=
"wx != null"
>
wx,
</if>
<if
test=
"wx != null"
>
wx,
</if>
...
@@ -127,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -127,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khxm != null"
>
#{khxm},
</if>
<if
test=
"khxm != null"
>
#{khxm},
</if>
<if
test=
"khgs != null"
>
#{khgs},
</if>
<if
test=
"khgs != null"
>
#{khgs},
</if>
<if
test=
"khly != null"
>
#{khly},
</if>
<if
test=
"khly != null"
>
#{khly},
</if>
<if
test=
"khlx != null"
>
#{khlx},
</if>
<if
test=
"cplb != null"
>
#{cplb},
</if>
<if
test=
"cplb != null"
>
#{cplb},
</if>
<if
test=
"sjh != null"
>
#{sjh},
</if>
<if
test=
"sjh != null"
>
#{sjh},
</if>
<if
test=
"wx != null"
>
#{wx},
</if>
<if
test=
"wx != null"
>
#{wx},
</if>
...
@@ -153,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -153,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khxm != null"
>
khxm = #{khxm},
</if>
<if
test=
"khxm != null"
>
khxm = #{khxm},
</if>
<if
test=
"khgs != null"
>
khgs = #{khgs},
</if>
<if
test=
"khgs != null"
>
khgs = #{khgs},
</if>
<if
test=
"khly != null"
>
khly = #{khly},
</if>
<if
test=
"khly != null"
>
khly = #{khly},
</if>
<if
test=
"khlx != null"
>
khlx = #{khlx},
</if>
<if
test=
"cplb != null"
>
cplb = #{cplb},
</if>
<if
test=
"cplb != null"
>
cplb = #{cplb},
</if>
<if
test=
"sjh != null"
>
sjh = #{sjh},
</if>
<if
test=
"sjh != null"
>
sjh = #{sjh},
</if>
<if
test=
"wx != null"
>
wx = #{wx},
</if>
<if
test=
"wx != null"
>
wx = #{wx},
</if>
...
...
ruoyi-system/src/main/resources/mapper/business/BaseInvoiceInfoMapper.xml
View file @
2fee52f9
...
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectBaseInvoiceInfoVo"
>
<sql
id=
"selectBaseInvoiceInfoVo"
>
select id, contract_id, htbh, bm_id, bm, kh_id, khmc, htmc, hkje, hkqs, fpnr, fplx, fpsl, kpje, fpse, nsrsbh,fpdm,fphm, dz, sjh, khh, yhzh, sprxm, sprdh, spryx, bz, fpzt, sqr,shr_id,shr, kpsj, dfkxy, dzhd, fpfj, create_time, create_by, update_time, update_by from base_invoice_info
select id, contract_id, htbh, bm_id, bm, kh_id, khmc, htmc,
payment_id,
hkje, hkqs, fpnr, fplx, fpsl, kpje, fpse, nsrsbh,fpdm,fphm, dz, sjh, khh, yhzh, sprxm, sprdh, spryx, bz, fpzt, sqr,shr_id,shr, kpsj, dfkxy, dzhd, fpfj, create_time, create_by, update_time, update_by from base_invoice_info
</sql>
</sql>
<select
id=
"selectBaseInvoiceInfoList"
parameterType=
"BaseInvoiceInfo"
resultMap=
"BaseInvoiceInfoResult"
>
<select
id=
"selectBaseInvoiceInfoList"
parameterType=
"BaseInvoiceInfo"
resultMap=
"BaseInvoiceInfoResult"
>
...
@@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khId != null "
>
and kh_id = #{khId}
</if>
<if
test=
"khId != null "
>
and kh_id = #{khId}
</if>
<if
test=
"khmc != null and khmc != ''"
>
and khmc = #{khmc}
</if>
<if
test=
"khmc != null and khmc != ''"
>
and khmc = #{khmc}
</if>
<if
test=
"htmc != null and htmc != ''"
>
and htmc = #{htmc}
</if>
<if
test=
"htmc != null and htmc != ''"
>
and htmc = #{htmc}
</if>
<if
test=
"paymentId != null "
>
and payment_id = #{paymentId}
</if>
<if
test=
"hkje != null "
>
and hkje = #{hkje}
</if>
<if
test=
"hkje != null "
>
and hkje = #{hkje}
</if>
<if
test=
"hkqs != null "
>
and hkqs = #{hkqs}
</if>
<if
test=
"hkqs != null "
>
and hkqs = #{hkqs}
</if>
<if
test=
"fpnr != null and fpnr != ''"
>
and fpnr = #{fpnr}
</if>
<if
test=
"fpnr != null and fpnr != ''"
>
and fpnr = #{fpnr}
</if>
...
@@ -116,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -116,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khId != null"
>
kh_id,
</if>
<if
test=
"khId != null"
>
kh_id,
</if>
<if
test=
"khmc != null"
>
khmc,
</if>
<if
test=
"khmc != null"
>
khmc,
</if>
<if
test=
"htmc != null"
>
htmc,
</if>
<if
test=
"htmc != null"
>
htmc,
</if>
<if
test=
"paymentId != null"
>
payment_id,
</if>
<if
test=
"hkje != null"
>
hkje,
</if>
<if
test=
"hkje != null"
>
hkje,
</if>
<if
test=
"hkqs != null"
>
hkqs,
</if>
<if
test=
"hkqs != null"
>
hkqs,
</if>
<if
test=
"fpnr != null"
>
fpnr,
</if>
<if
test=
"fpnr != null"
>
fpnr,
</if>
...
@@ -156,6 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -156,6 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khId != null"
>
#{khId},
</if>
<if
test=
"khId != null"
>
#{khId},
</if>
<if
test=
"khmc != null"
>
#{khmc},
</if>
<if
test=
"khmc != null"
>
#{khmc},
</if>
<if
test=
"htmc != null"
>
#{htmc},
</if>
<if
test=
"htmc != null"
>
#{htmc},
</if>
<if
test=
"paymentId != null"
>
#{paymentId},
</if>
<if
test=
"hkje != null"
>
#{hkje},
</if>
<if
test=
"hkje != null"
>
#{hkje},
</if>
<if
test=
"hkqs != null"
>
#{hkqs},
</if>
<if
test=
"hkqs != null"
>
#{hkqs},
</if>
<if
test=
"fpnr != null"
>
#{fpnr},
</if>
<if
test=
"fpnr != null"
>
#{fpnr},
</if>
...
@@ -199,6 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -199,6 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"khId != null"
>
kh_id = #{khId},
</if>
<if
test=
"khId != null"
>
kh_id = #{khId},
</if>
<if
test=
"khmc != null"
>
khmc = #{khmc},
</if>
<if
test=
"khmc != null"
>
khmc = #{khmc},
</if>
<if
test=
"htmc != null"
>
htmc = #{htmc},
</if>
<if
test=
"htmc != null"
>
htmc = #{htmc},
</if>
<if
test=
"paymentId != null"
>
payment_id = #{paymentId},
</if>
<if
test=
"hkje != null"
>
hkje = #{hkje},
</if>
<if
test=
"hkje != null"
>
hkje = #{hkje},
</if>
<if
test=
"hkqs != null"
>
hkqs = #{hkqs},
</if>
<if
test=
"hkqs != null"
>
hkqs = #{hkqs},
</if>
<if
test=
"fpnr != null"
>
fpnr = #{fpnr},
</if>
<if
test=
"fpnr != null"
>
fpnr = #{fpnr},
</if>
...
...
ruoyi-system/src/main/resources/mapper/business/BasePaymentCollectionInfoMapper.xml
View file @
2fee52f9
...
@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"hkqs"
column=
"hkqs"
/>
<result
property=
"hkqs"
column=
"hkqs"
/>
<result
property=
"hkje"
column=
"hkje"
/>
<result
property=
"hkje"
column=
"hkje"
/>
<result
property=
"hkfs"
column=
"hkfs"
/>
<result
property=
"hkfs"
column=
"hkfs"
/>
<result
property=
"kpzt"
column=
"kpzt"
/>
<result
property=
"hkpz"
column=
"hkpz"
/>
<result
property=
"hkpz"
column=
"hkpz"
/>
<result
property=
"skfs"
column=
"skfs"
/>
<result
property=
"skfs"
column=
"skfs"
/>
<result
property=
"bz"
column=
"bz"
/>
<result
property=
"bz"
column=
"bz"
/>
...
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectBasePaymentCollectionInfoVo"
>
<sql
id=
"selectBasePaymentCollectionInfoVo"
>
select id, contract_id, invoice_id, dz_flag, hk_time, hkqs, hkje, hkfs, hkpz, skfs, bz, yjdz_time, delete_flag, create_time, create_by, update_time, update_by from base_payment_collection_info
select id, contract_id, invoice_id, dz_flag, hk_time, hkqs, hkje, hkfs, hkpz,
kpzt,
skfs, bz, yjdz_time, delete_flag, create_time, create_by, update_time, update_by from base_payment_collection_info
</sql>
</sql>
<select
id=
"selectBasePaymentCollectionInfoList"
parameterType=
"BasePaymentCollectionInfo"
resultMap=
"BasePaymentCollectionInfoResult"
>
<select
id=
"selectBasePaymentCollectionInfoList"
parameterType=
"BasePaymentCollectionInfo"
resultMap=
"BasePaymentCollectionInfoResult"
>
...
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hkqs != null "
>
and hkqs = #{hkqs}
</if>
<if
test=
"hkqs != null "
>
and hkqs = #{hkqs}
</if>
<if
test=
"hkje != null "
>
and hkje = #{hkje}
</if>
<if
test=
"hkje != null "
>
and hkje = #{hkje}
</if>
<if
test=
"hkfs != null "
>
and hkfs = #{hkfs}
</if>
<if
test=
"hkfs != null "
>
and hkfs = #{hkfs}
</if>
<if
test=
"hkzt != null "
>
and hkzt = #{hkzt}
</if>
<if
test=
"hkpz != null and hkpz != ''"
>
and hkpz = #{hkpz}
</if>
<if
test=
"hkpz != null and hkpz != ''"
>
and hkpz = #{hkpz}
</if>
<if
test=
"skfs != null "
>
and skfs = #{skfs}
</if>
<if
test=
"skfs != null "
>
and skfs = #{skfs}
</if>
<if
test=
"bz != null and bz != ''"
>
and bz = #{bz}
</if>
<if
test=
"bz != null and bz != ''"
>
and bz = #{bz}
</if>
...
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hkqs != null"
>
hkqs,
</if>
<if
test=
"hkqs != null"
>
hkqs,
</if>
<if
test=
"hkje != null"
>
hkje,
</if>
<if
test=
"hkje != null"
>
hkje,
</if>
<if
test=
"hkfs != null"
>
hkfs,
</if>
<if
test=
"hkfs != null"
>
hkfs,
</if>
<if
test=
"hkzt != null"
>
hkzt,
</if>
<if
test=
"hkpz != null"
>
hkpz,
</if>
<if
test=
"hkpz != null"
>
hkpz,
</if>
<if
test=
"skfs != null"
>
skfs,
</if>
<if
test=
"skfs != null"
>
skfs,
</if>
<if
test=
"bz != null"
>
bz,
</if>
<if
test=
"bz != null"
>
bz,
</if>
...
@@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hkqs != null"
>
#{hkqs},
</if>
<if
test=
"hkqs != null"
>
#{hkqs},
</if>
<if
test=
"hkje != null"
>
#{hkje},
</if>
<if
test=
"hkje != null"
>
#{hkje},
</if>
<if
test=
"hkfs != null"
>
#{hkfs},
</if>
<if
test=
"hkfs != null"
>
#{hkfs},
</if>
<if
test=
"kpzt != null"
>
#{kpzt},
</if>
<if
test=
"hkpz != null"
>
#{hkpz},
</if>
<if
test=
"hkpz != null"
>
#{hkpz},
</if>
<if
test=
"skfs != null"
>
#{skfs},
</if>
<if
test=
"skfs != null"
>
#{skfs},
</if>
<if
test=
"bz != null"
>
#{bz},
</if>
<if
test=
"bz != null"
>
#{bz},
</if>
...
@@ -102,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -102,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hkqs != null"
>
hkqs = #{hkqs},
</if>
<if
test=
"hkqs != null"
>
hkqs = #{hkqs},
</if>
<if
test=
"hkje != null"
>
hkje = #{hkje},
</if>
<if
test=
"hkje != null"
>
hkje = #{hkje},
</if>
<if
test=
"hkfs != null"
>
hkfs = #{hkfs},
</if>
<if
test=
"hkfs != null"
>
hkfs = #{hkfs},
</if>
<if
test=
"kpzt != null"
>
kpzt = #{kpzt},
</if>
<if
test=
"hkpz != null"
>
hkpz = #{hkpz},
</if>
<if
test=
"hkpz != null"
>
hkpz = #{hkpz},
</if>
<if
test=
"skfs != null"
>
skfs = #{skfs},
</if>
<if
test=
"skfs != null"
>
skfs = #{skfs},
</if>
<if
test=
"bz != null"
>
bz = #{bz},
</if>
<if
test=
"bz != null"
>
bz = #{bz},
</if>
...
...
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