资产存放位置
This commit is contained in:
parent
7c564df4bc
commit
dc74f8f0b0
@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDeal;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyDealService;
|
import cn.iocoder.yudao.module.property.service.PropertyDealService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
||||||
@ -63,7 +63,7 @@ public class PropertyDealController {
|
|||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('company:property-deal:query')")
|
@PreAuthorize("@ss.hasPermission('company:property-deal:query')")
|
||||||
public CommonResult<PropertyDealRespVO> getPropertyDeal(@RequestParam("id") String id) {
|
public CommonResult<PropertyDealRespVO> getPropertyDeal(@RequestParam("id") String id) {
|
||||||
PropertyDealDO propertyDeal = propertyDealService.getPropertyDeal(id);
|
PropertyDeal propertyDeal = propertyDealService.getPropertyDeal(id);
|
||||||
return success(BeanUtils.toBean(propertyDeal, PropertyDealRespVO.class));
|
return success(BeanUtils.toBean(propertyDeal, PropertyDealRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealItemDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDealItem;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyDealItemService;
|
import cn.iocoder.yudao.module.property.service.PropertyDealItemService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
||||||
@ -63,7 +63,7 @@ public class PropertyDealItemController {
|
|||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('company:property-deal-item:query')")
|
@PreAuthorize("@ss.hasPermission('company:property-deal-item:query')")
|
||||||
public CommonResult<PropertyDealItemRespVO> getPropertyDealItem(@RequestParam("id") String id) {
|
public CommonResult<PropertyDealItemRespVO> getPropertyDealItem(@RequestParam("id") String id) {
|
||||||
PropertyDealItemDO propertyDealItem = propertyDealItemService.getPropertyDealItem(id);
|
PropertyDealItem propertyDealItem = propertyDealItemService.getPropertyDealItem(id);
|
||||||
return success(BeanUtils.toBean(propertyDealItem, PropertyDealItemRespVO.class));
|
return success(BeanUtils.toBean(propertyDealItem, PropertyDealItemRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,11 +5,14 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyPosDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyPosService;
|
import cn.iocoder.yudao.module.property.service.PropertyPosService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
||||||
|
import cn.iocoder.yudao.module.staff.entity.CompanyStaff;
|
||||||
|
import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
@ -63,28 +66,18 @@ public class PropertyPosController {
|
|||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('company:property-pos:query')")
|
@PreAuthorize("@ss.hasPermission('company:property-pos:query')")
|
||||||
public CommonResult<PropertyPosRespVO> getPropertyPos(@RequestParam("id") String id) {
|
public CommonResult<PropertyPosRespVO> getPropertyPos(@RequestParam("id") String id) {
|
||||||
PropertyPosDO propertyPos = propertyPosService.getPropertyPos(id);
|
PropertyPos propertyPos = propertyPosService.getPropertyPos(id);
|
||||||
return success(BeanUtils.toBean(propertyPos, PropertyPosRespVO.class));
|
return success(BeanUtils.toBean(propertyPos, PropertyPosRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得企业管理-资产存放位置分页")
|
@Operation(summary = "获得企业管理-资产存放位置分页")
|
||||||
@PreAuthorize("@ss.hasPermission('company:property-pos:query')")
|
@PreAuthorize("@ss.hasPermission('company:property-pos:query')")
|
||||||
public CommonResult<IPage<PropertyPosRespVO>> getPropertyPosPage(PropertyPosReqVO pageReqVO) {
|
public CommonResult<IPage<?>> getPropertyPosPage(PropertyPosReqVO pageReqVO,
|
||||||
IPage<PropertyPosRespVO> pageResult = propertyPosService.getPropertyPosPage(pageReqVO);
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
return success(pageResult);
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
||||||
}
|
Page<PropertyPos> page = new Page<>(pageNo, pageSize);
|
||||||
|
return success(propertyPosService.getPropertyPosPage( page,pageReqVO));
|
||||||
@GetMapping("/export-excel")
|
|
||||||
@Operation(summary = "导出企业管理-资产存放位置 Excel")
|
|
||||||
@PreAuthorize("@ss.hasPermission('company:property-pos:export')")
|
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
|
||||||
public void exportPropertyPosExcel(PropertyPosReqVO pageReqVO,
|
|
||||||
HttpServletResponse response) throws IOException {
|
|
||||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
||||||
List<PropertyPosRespVO> list = propertyPosService.getPropertyPosPage(pageReqVO).getRecords();
|
|
||||||
// 导出 Excel
|
|
||||||
ExcelUtils.write(response, "企业管理-资产存放位置.xls", "数据", PropertyPosRespVO.class,list);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -22,7 +22,7 @@ import java.time.LocalDate;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class PropertyDealDO extends BaseDO {
|
public class PropertyDeal extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键标识
|
* 主键标识
|
@ -20,7 +20,7 @@ import lombok.*;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class PropertyDealItemDO extends BaseDO {
|
public class PropertyDealItem extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键标识
|
* 主键标识
|
@ -22,7 +22,7 @@ import java.math.BigDecimal;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class PropertyPosDO extends TenantBaseDO {
|
public class PropertyPos extends TenantBaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键标识
|
* 主键标识
|
||||||
@ -50,9 +50,7 @@ public class PropertyPosDO extends TenantBaseDO {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal area;
|
private BigDecimal area;
|
||||||
/**
|
/**
|
||||||
* 存放类型
|
* 存放类型-数据字典 company_deposit_type
|
||||||
*
|
|
||||||
* 枚举 {@link TODO company_deposit_type 对应的类}
|
|
||||||
*/
|
*/
|
||||||
private String depositType;
|
private String depositType;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.property.mapper;
|
package cn.iocoder.yudao.module.property.mapper;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealItemDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDealItem;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
@ -13,7 +13,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|||||||
* @author 后台管理员
|
* @author 后台管理员
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface PropertyDealItemMapper extends BaseMapper<PropertyDealItemDO> {
|
public interface PropertyDealItemMapper extends BaseMapper<PropertyDealItem> {
|
||||||
|
|
||||||
default IPage<PropertyDealItemRespVO> selectPage(PropertyDealItemReqVO reqVO) {
|
default IPage<PropertyDealItemRespVO> selectPage(PropertyDealItemReqVO reqVO) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.property.mapper;
|
package cn.iocoder.yudao.module.property.mapper;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDeal;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@ -13,7 +13,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|||||||
* @author 后台管理员
|
* @author 后台管理员
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface PropertyDealMapper extends BaseMapperX<PropertyDealDO> {
|
public interface PropertyDealMapper extends BaseMapperX<PropertyDeal> {
|
||||||
|
|
||||||
default IPage<PropertyDealRespVO> selectPage(PropertyDealReqVO reqVO) {
|
default IPage<PropertyDealRespVO> selectPage(PropertyDealReqVO reqVO) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
package cn.iocoder.yudao.module.property.mapper;
|
package cn.iocoder.yudao.module.property.mapper;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyPosDO;
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
||||||
|
import cn.iocoder.yudao.module.staff.entity.CompanyStaff;
|
||||||
|
import cn.iocoder.yudao.module.staff.vo.CompanyStaffReqVO;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业管理-资产存放位置 Mapper
|
* 企业管理-资产存放位置 Mapper
|
||||||
@ -13,10 +18,16 @@ import org.apache.ibatis.annotations.Mapper;
|
|||||||
* @author vinjor-m
|
* @author vinjor-m
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface PropertyPosMapper extends BaseMapper<PropertyPosDO> {
|
public interface PropertyPosMapper extends BaseMapper<PropertyPos> {
|
||||||
|
|
||||||
default IPage<PropertyPosRespVO> selectPage(PropertyPosReqVO reqVO) {
|
/**
|
||||||
return null;
|
* 分页查询
|
||||||
}
|
* @author vinjor-M
|
||||||
|
* @date 11:43 2024/8/14
|
||||||
|
* @param propertyPosReqVO 查询条件
|
||||||
|
* @param page 分页对象
|
||||||
|
* @return com.baomidou.mybatisplus.core.metadata.IPage<cn.iocoder.yudao.module.property.vo.PropertyPosRespVO>
|
||||||
|
**/
|
||||||
|
IPage<PropertyPosRespVO> selectListPage(Page<PropertyPos> page,@Param("map") PropertyPosReqVO propertyPosReqVO);
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.property.service;
|
package cn.iocoder.yudao.module.property.service;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealItemDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDealItem;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemRespVO;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@ -12,7 +12,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||||||
*
|
*
|
||||||
* @author 后台管理员
|
* @author 后台管理员
|
||||||
*/
|
*/
|
||||||
public interface PropertyDealItemService extends IService<PropertyDealItemDO> {
|
public interface PropertyDealItemService extends IService<PropertyDealItem> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建企业管理-资产处置子
|
* 创建企业管理-资产处置子
|
||||||
@ -42,7 +42,7 @@ public interface PropertyDealItemService extends IService<PropertyDealItemDO> {
|
|||||||
* @param id 编号
|
* @param id 编号
|
||||||
* @return 企业管理-资产处置子
|
* @return 企业管理-资产处置子
|
||||||
*/
|
*/
|
||||||
PropertyDealItemDO getPropertyDealItem(String id);
|
PropertyDealItem getPropertyDealItem(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得企业管理-资产处置子分页
|
* 获得企业管理-资产处置子分页
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.property.service;
|
package cn.iocoder.yudao.module.property.service;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDeal;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealRespVO;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||||||
*
|
*
|
||||||
* @author 后台管理员
|
* @author 后台管理员
|
||||||
*/
|
*/
|
||||||
public interface PropertyDealService extends IService<PropertyDealDO> {
|
public interface PropertyDealService extends IService<PropertyDeal> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建企业管理-资产处置单/变动单
|
* 创建企业管理-资产处置单/变动单
|
||||||
@ -41,7 +41,7 @@ public interface PropertyDealService extends IService<PropertyDealDO> {
|
|||||||
* @param id 编号
|
* @param id 编号
|
||||||
* @return 企业管理-资产处置单/变动单
|
* @return 企业管理-资产处置单/变动单
|
||||||
*/
|
*/
|
||||||
PropertyDealDO getPropertyDeal(String id);
|
PropertyDeal getPropertyDeal(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得企业管理-资产处置单/变动单分页
|
* 获得企业管理-资产处置单/变动单分页
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
package cn.iocoder.yudao.module.property.service;
|
package cn.iocoder.yudao.module.property.service;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyPosDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
||||||
|
import cn.iocoder.yudao.module.staff.entity.CompanyStaff;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +13,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||||||
*
|
*
|
||||||
* @author vinjor-m
|
* @author vinjor-m
|
||||||
*/
|
*/
|
||||||
public interface PropertyPosService extends IService<PropertyPosDO> {
|
public interface PropertyPosService extends IService<PropertyPos> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建企业管理-资产存放位置
|
* 创建企业管理-资产存放位置
|
||||||
@ -41,7 +43,7 @@ public interface PropertyPosService extends IService<PropertyPosDO> {
|
|||||||
* @param id 编号
|
* @param id 编号
|
||||||
* @return 企业管理-资产存放位置
|
* @return 企业管理-资产存放位置
|
||||||
*/
|
*/
|
||||||
PropertyPosDO getPropertyPos(String id);
|
PropertyPos getPropertyPos(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得企业管理-资产存放位置分页
|
* 获得企业管理-资产存放位置分页
|
||||||
@ -49,6 +51,6 @@ public interface PropertyPosService extends IService<PropertyPosDO> {
|
|||||||
* @param pageReqVO 分页查询
|
* @param pageReqVO 分页查询
|
||||||
* @return 企业管理-资产存放位置分页
|
* @return 企业管理-资产存放位置分页
|
||||||
*/
|
*/
|
||||||
IPage<PropertyPosRespVO> getPropertyPosPage(PropertyPosReqVO pageReqVO);
|
IPage<PropertyPosRespVO> getPropertyPosPage(Page<PropertyPos> page,PropertyPosReqVO pageReqVO);
|
||||||
|
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.property.service.impl;
|
package cn.iocoder.yudao.module.property.service.impl;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealItemDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDealItem;
|
||||||
import cn.iocoder.yudao.module.property.mapper.PropertyDealItemMapper;
|
import cn.iocoder.yudao.module.property.mapper.PropertyDealItemMapper;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyDealItemService;
|
import cn.iocoder.yudao.module.property.service.PropertyDealItemService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealItemReqVO;
|
||||||
@ -18,12 +18,12 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Validated
|
@Validated
|
||||||
public class PropertyDealItemServiceImpl extends ServiceImpl<PropertyDealItemMapper, PropertyDealItemDO> implements PropertyDealItemService {
|
public class PropertyDealItemServiceImpl extends ServiceImpl<PropertyDealItemMapper, PropertyDealItem> implements PropertyDealItemService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createPropertyDealItem(PropertyDealItemReqVO createReqVO) {
|
public String createPropertyDealItem(PropertyDealItemReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
PropertyDealItemDO propertyDealItem = BeanUtils.toBean(createReqVO, PropertyDealItemDO.class);
|
PropertyDealItem propertyDealItem = BeanUtils.toBean(createReqVO, PropertyDealItem.class);
|
||||||
baseMapper.insert(propertyDealItem);
|
baseMapper.insert(propertyDealItem);
|
||||||
// 返回
|
// 返回
|
||||||
return propertyDealItem.getId();
|
return propertyDealItem.getId();
|
||||||
@ -32,7 +32,7 @@ public class PropertyDealItemServiceImpl extends ServiceImpl<PropertyDealItemMap
|
|||||||
@Override
|
@Override
|
||||||
public void updatePropertyDealItem(PropertyDealItemReqVO updateReqVO) {
|
public void updatePropertyDealItem(PropertyDealItemReqVO updateReqVO) {
|
||||||
// 更新
|
// 更新
|
||||||
PropertyDealItemDO updateObj = BeanUtils.toBean(updateReqVO, PropertyDealItemDO.class);
|
PropertyDealItem updateObj = BeanUtils.toBean(updateReqVO, PropertyDealItem.class);
|
||||||
baseMapper.updateById(updateObj);
|
baseMapper.updateById(updateObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ public class PropertyDealItemServiceImpl extends ServiceImpl<PropertyDealItemMap
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PropertyDealItemDO getPropertyDealItem(String id) {
|
public PropertyDealItem getPropertyDealItem(String id) {
|
||||||
return baseMapper.selectById(id);
|
return baseMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.property.service.impl;
|
package cn.iocoder.yudao.module.property.service.impl;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDeal;
|
||||||
import cn.iocoder.yudao.module.property.mapper.PropertyDealMapper;
|
import cn.iocoder.yudao.module.property.mapper.PropertyDealMapper;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyDealService;
|
import cn.iocoder.yudao.module.property.service.PropertyDealService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyDealReqVO;
|
||||||
@ -19,12 +19,12 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Validated
|
@Validated
|
||||||
public class PropertyDealServiceImpl extends ServiceImpl<PropertyDealMapper,PropertyDealDO> implements PropertyDealService {
|
public class PropertyDealServiceImpl extends ServiceImpl<PropertyDealMapper, PropertyDeal> implements PropertyDealService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createPropertyDeal(PropertyDealReqVO createReqVO) {
|
public String createPropertyDeal(PropertyDealReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
PropertyDealDO propertyDeal = BeanUtils.toBean(createReqVO, PropertyDealDO.class);
|
PropertyDeal propertyDeal = BeanUtils.toBean(createReqVO, PropertyDeal.class);
|
||||||
baseMapper.insert(propertyDeal);
|
baseMapper.insert(propertyDeal);
|
||||||
// 返回
|
// 返回
|
||||||
return propertyDeal.getId();
|
return propertyDeal.getId();
|
||||||
@ -33,7 +33,7 @@ public class PropertyDealServiceImpl extends ServiceImpl<PropertyDealMapper,Prop
|
|||||||
@Override
|
@Override
|
||||||
public void updatePropertyDeal(PropertyDealReqVO updateReqVO) {
|
public void updatePropertyDeal(PropertyDealReqVO updateReqVO) {
|
||||||
// 更新
|
// 更新
|
||||||
PropertyDealDO updateObj = BeanUtils.toBean(updateReqVO, PropertyDealDO.class);
|
PropertyDeal updateObj = BeanUtils.toBean(updateReqVO, PropertyDeal.class);
|
||||||
baseMapper.updateById(updateObj);
|
baseMapper.updateById(updateObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ public class PropertyDealServiceImpl extends ServiceImpl<PropertyDealMapper,Prop
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PropertyDealDO getPropertyDeal(String id) {
|
public PropertyDeal getPropertyDeal(String id) {
|
||||||
return baseMapper.selectById(id);
|
return baseMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.property.service.impl;
|
|||||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
||||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyPosDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import cn.iocoder.yudao.module.property.mapper.PropertyPosMapper;
|
import cn.iocoder.yudao.module.property.mapper.PropertyPosMapper;
|
||||||
import cn.iocoder.yudao.module.property.service.PropertyPosService;
|
import cn.iocoder.yudao.module.property.service.PropertyPosService;
|
||||||
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
import cn.iocoder.yudao.module.property.vo.PropertyPosReqVO;
|
||||||
@ -11,6 +11,7 @@ import cn.iocoder.yudao.module.property.vo.PropertyPosRespVO;
|
|||||||
import cn.iocoder.yudao.module.system.api.dept.DeptApi;
|
import cn.iocoder.yudao.module.system.api.dept.DeptApi;
|
||||||
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
|
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -21,7 +22,6 @@ import javax.annotation.Resource;
|
|||||||
import static cn.iocoder.yudao.common.ErrorCodeConstants.PROPERTY_NO_CORP;
|
import static cn.iocoder.yudao.common.ErrorCodeConstants.PROPERTY_NO_CORP;
|
||||||
import static cn.iocoder.yudao.common.ErrorCodeConstants.PROPERTY_NO_DEPT;
|
import static cn.iocoder.yudao.common.ErrorCodeConstants.PROPERTY_NO_DEPT;
|
||||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.USER_COUNT_MAX;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业管理-资产存放位置 Service 实现类
|
* 企业管理-资产存放位置 Service 实现类
|
||||||
@ -30,9 +30,11 @@ import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.USER_COUNT
|
|||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Validated
|
@Validated
|
||||||
public class PropertyPosServiceImpl extends ServiceImpl<PropertyPosMapper, PropertyPosDO> implements PropertyPosService {
|
public class PropertyPosServiceImpl extends ServiceImpl<PropertyPosMapper, PropertyPos> implements PropertyPosService {
|
||||||
@Resource
|
@Resource
|
||||||
private DeptApi deptApi;
|
private DeptApi deptApi;
|
||||||
|
@Resource
|
||||||
|
private PropertyPosMapper propertyPosMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createPropertyPos(PropertyPosReqVO createReqVO) {
|
public String createPropertyPos(PropertyPosReqVO createReqVO) {
|
||||||
@ -53,7 +55,7 @@ public class PropertyPosServiceImpl extends ServiceImpl<PropertyPosMapper, Prope
|
|||||||
createReqVO.setCorpId(deptRespDTO.getCorpId());
|
createReqVO.setCorpId(deptRespDTO.getCorpId());
|
||||||
}
|
}
|
||||||
/* 2.插入数据并反回Id*/
|
/* 2.插入数据并反回Id*/
|
||||||
PropertyPosDO propertyPos = BeanUtils.toBean(createReqVO, PropertyPosDO.class);
|
PropertyPos propertyPos = BeanUtils.toBean(createReqVO, PropertyPos.class);
|
||||||
baseMapper.insert(propertyPos);
|
baseMapper.insert(propertyPos);
|
||||||
// 返回
|
// 返回
|
||||||
return propertyPos.getId();
|
return propertyPos.getId();
|
||||||
@ -62,7 +64,7 @@ public class PropertyPosServiceImpl extends ServiceImpl<PropertyPosMapper, Prope
|
|||||||
@Override
|
@Override
|
||||||
public void updatePropertyPos(PropertyPosReqVO updateReqVO) {
|
public void updatePropertyPos(PropertyPosReqVO updateReqVO) {
|
||||||
// 更新
|
// 更新
|
||||||
PropertyPosDO updateObj = BeanUtils.toBean(updateReqVO, PropertyPosDO.class);
|
PropertyPos updateObj = BeanUtils.toBean(updateReqVO, PropertyPos.class);
|
||||||
baseMapper.updateById(updateObj);
|
baseMapper.updateById(updateObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,13 +77,13 @@ public class PropertyPosServiceImpl extends ServiceImpl<PropertyPosMapper, Prope
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PropertyPosDO getPropertyPos(String id) {
|
public PropertyPos getPropertyPos(String id) {
|
||||||
return baseMapper.selectById(id);
|
return baseMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<PropertyPosRespVO> getPropertyPosPage(PropertyPosReqVO pageReqVO) {
|
public IPage<PropertyPosRespVO> getPropertyPosPage(Page<PropertyPos> page, PropertyPosReqVO pageReqVO) {
|
||||||
return baseMapper.selectPage(pageReqVO);
|
return propertyPosMapper.selectListPage(page,pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.property.vo;
|
package cn.iocoder.yudao.module.property.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealItemDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDealItem;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@ -11,7 +11,7 @@ import java.time.LocalDateTime;
|
|||||||
@Schema(description = "管理后台 - 企业管理-资产处置子 Response VO")
|
@Schema(description = "管理后台 - 企业管理-资产处置子 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class PropertyDealItemRespVO extends PropertyDealItemDO {
|
public class PropertyDealItemRespVO extends PropertyDealItem {
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@ExcelProperty("创建时间")
|
@ExcelProperty("创建时间")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.property.vo;
|
package cn.iocoder.yudao.module.property.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyDealDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyDeal;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@ -11,7 +11,7 @@ import java.time.LocalDateTime;
|
|||||||
@Schema(description = "管理后台 - 企业管理-资产处置单/变动单 Response VO")
|
@Schema(description = "管理后台 - 企业管理-资产处置单/变动单 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class PropertyDealRespVO extends PropertyDealDO {
|
public class PropertyDealRespVO extends PropertyDeal {
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@ExcelProperty("创建时间")
|
@ExcelProperty("创建时间")
|
||||||
|
@ -1,46 +1,17 @@
|
|||||||
package cn.iocoder.yudao.module.property.vo;
|
package cn.iocoder.yudao.module.property.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
|
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 企业管理-资产存放位置分页 Request VO")
|
@Schema(description = "管理后台 - 企业管理-资产存放位置分页 Request VO")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class PropertyPosReqVO extends PageParam {
|
public class PropertyPosReqVO extends PropertyPos {
|
||||||
|
|
||||||
@Schema(description = "主键标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "18095")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Schema(description = "企业id(base_company表中的id)", example = "5018")
|
|
||||||
private String corpId;
|
|
||||||
|
|
||||||
@Schema(description = "部门id(system_dept表中的id,用来做数据权限控制)", example = "25943")
|
|
||||||
private Long deptId;
|
|
||||||
|
|
||||||
@Schema(description = "存放地名称", example = "王五")
|
|
||||||
private String posName;
|
|
||||||
|
|
||||||
@Schema(description = "存放地地址")
|
|
||||||
private String address;
|
|
||||||
|
|
||||||
@Schema(description = "面积")
|
|
||||||
private BigDecimal area;
|
|
||||||
|
|
||||||
@Schema(description = "存放类型", example = "2")
|
|
||||||
private String depositType;
|
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,20 +1,17 @@
|
|||||||
package cn.iocoder.yudao.module.property.vo;
|
package cn.iocoder.yudao.module.property.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.property.entity.PropertyPosDO;
|
import cn.iocoder.yudao.module.property.entity.PropertyPos;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 企业管理-资产存放位置 Response VO")
|
@Schema(description = "管理后台 - 企业管理-资产存放位置 Response VO")
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class PropertyPosRespVO extends PropertyPosDO {
|
public class PropertyPosRespVO extends PropertyPos {
|
||||||
|
/**
|
||||||
@Schema(description = "创建时间")
|
* 企业名称
|
||||||
@ExcelProperty("创建时间")
|
*/
|
||||||
private LocalDateTime createTime;
|
String corpName;
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="cn.iocoder.yudao.module.property.dal.mysql.property.PropertyPosMapper">
|
<mapper namespace="cn.iocoder.yudao.module.property.mapper.PropertyPosMapper">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
@ -8,5 +8,28 @@
|
|||||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
-->
|
-->
|
||||||
|
<sql id="Base_SQL">
|
||||||
|
cpp.id,cpp.corp_id,cpp.dept_id,cpp.pos_name,cpp.address,
|
||||||
|
cpp.area,cpp.deposit_type,cpp.tenant_id,cpp.deleted,
|
||||||
|
cpp.creator,cpp.create_time,cpp.updater,cpp.update_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectListPage" resultType="cn.iocoder.yudao.module.property.vo.PropertyPosRespVO">
|
||||||
|
select
|
||||||
|
<include refid="Base_SQL" />,bc.corp_name
|
||||||
|
FROM company_property_pos cpp
|
||||||
|
LEFT JOIN base_company bc ON cpp.corp_id = bc.id
|
||||||
|
<where>
|
||||||
|
cpp.deleted = 0
|
||||||
|
<if test="map.posName != null and map.posName != ''">
|
||||||
|
AND cpp.pos_name like CONCAT('%', #{map.posName}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="map.address != null and map.address != ''">
|
||||||
|
AND cpp.address like CONCAT('%', #{map.address}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="map.depositType != null and map.depositType != ''">
|
||||||
|
AND cpp.deposit_type like CONCAT('%', #{map.depositType}, '%')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
ORDER BY cpp.create_time DESC
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user