资金管理
parent
52896ebdd6
commit
a3e55785f7
|
|
@ -17,6 +17,8 @@ public class SearchCompanyParam {
|
|||
*/
|
||||
private BizObj bizObj;
|
||||
|
||||
private String station;
|
||||
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ public class BizCompanyService extends ServiceImpl<BizCompanyMapper, BizCompanyE
|
|||
String legalRepresentative = searchCompanyParam.getLegalRepresentative();
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<BizCompanyEntity>lambdaQuery()
|
||||
.eq(auditStatus != null, BizCompanyEntity::getAuditStatus, auditStatus)
|
||||
.eq(StrUtil.isNotBlank(searchCompanyParam.getStation()), BizCompanyEntity::getStation, searchCompanyParam.getStation())
|
||||
.like(StrUtil.isNotBlank(companyName), BizCompanyEntity::getCompanyName, companyName)
|
||||
.like(StrUtil.isNotBlank(legalRepresentative), BizCompanyEntity::getLegalRepresentative, legalRepresentative)
|
||||
.like(StrUtil.isNotBlank(uscc), BizCompanyEntity::getUscc, uscc)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
package com.njzscloud.supervisory.money.service;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njzscloud.common.mp.support.PageParam;
|
||||
import com.njzscloud.common.mp.support.PageResult;
|
||||
import com.njzscloud.common.security.util.SecurityUtil;
|
||||
import com.njzscloud.supervisory.money.mapper.MoneyAccountMapper;
|
||||
import com.njzscloud.supervisory.money.pojo.entity.MoneyAccountEntity;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
|
@ -24,6 +26,7 @@ public class MoneyAccountService extends ServiceImpl<MoneyAccountMapper, MoneyAc
|
|||
* 新增
|
||||
*/
|
||||
public void add(MoneyAccountEntity moneyAccountEntity) {
|
||||
moneyAccountEntity.setUserId(SecurityUtil.currentUserId());
|
||||
this.save(moneyAccountEntity);
|
||||
}
|
||||
|
||||
|
|
@ -53,7 +56,9 @@ public class MoneyAccountService extends ServiceImpl<MoneyAccountMapper, MoneyAc
|
|||
* 分页查询
|
||||
*/
|
||||
public PageResult<MoneyAccountEntity> paging(PageParam pageParam, MoneyAccountEntity moneyAccountEntity) {
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<MoneyAccountEntity>query(moneyAccountEntity)));
|
||||
Long stationId = moneyAccountEntity.getStationId();
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<MoneyAccountEntity>lambdaQuery()
|
||||
.eq(null != stationId, MoneyAccountEntity::getStationId, stationId)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue