Commit fee071c6 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/MVP1.7.12' into MVP1.7.12

parents ef4ad0cd 0736ea6a
......@@ -162,6 +162,10 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty("籍贯")
@Schema(description = "籍贯")
private String nativePlace;
@Schema(description = "籍贯地区ID")
private Integer nativePlaceAreaId;
/**
* 民族
*/
......@@ -295,6 +299,15 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty("家庭住址-所在区编码")
@Schema(description = "家庭住址-所在区编码")
private String countyId;
@Schema(description = "家庭住址-所在省地区ID")
private Integer stateAreaId;
@Schema(description = "家庭住址-所在市地区ID")
private Integer cityAreaId;
@Schema(description = "家庭住址-所在区地区ID")
private Integer countyAreaId;
/**
* 家庭住址-详细地址
*/
......@@ -385,6 +398,14 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty("试用期预计结束日期")
@Schema(description = "试用期预计结束日期")
private Date prcExpDt;
/**
* 合同签署主体(系统固定传 V59)
*/
@ExcelAttribute(name = "合同签署主体", maxLength = 30)
@Length(max = 30, message = "合同签署主体不能超过30个字符")
@ExcelProperty("合同签署主体")
@Schema(description = "合同签署主体")
private String neeProviderId;
/**
* 合同工作地
*/
......@@ -433,6 +454,16 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty("户口-所在区编码")
@Schema(description = "户口-所在区编码")
private String hukouCounty;
@Schema(description = "户口-所在省地区ID")
private Integer hukouProvinceAreaId;
@Schema(description = "户口-所在市地区ID")
private Integer hukouCityAreaId;
@Schema(description = "户口-所在区地区ID")
private Integer hukouCountyAreaId;
/**
* 户口地址
*/
......@@ -505,6 +536,13 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty("开户行所在市")
@Schema(description = "开户行所在市")
private String accountCity;
@Schema(description = "开户行所在省地区ID")
private Integer accountProvinceAreaId;
@Schema(description = "开户行所在市地区ID")
private Integer accountCityAreaId;
/**
* 账号ID
*/
......
......@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
......@@ -33,6 +34,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.util.ArrayList;
import java.util.List;
......@@ -63,6 +65,33 @@ public class TGzOfferInfoController {
return new R<>(tGzOfferInfoService.getTGzOfferInfoPage(page,tGzOfferInfo));
}
/**
* 仅返回指定条数的列表数据
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List<TGzOfferInfoVo>>
*/
@Operation(description = "仅返回指定条数的列表数据")
@GetMapping("/list")
public R<List<TGzOfferInfoVo>> getTGzOfferInfoList(TGzOfferInfoVo tGzOfferInfo) {
if(Common.isEmpty(tGzOfferInfo.getOfferStatus())){
return new R<>(new ArrayList<>());
}
return new R<>(tGzOfferInfoService.getTGzOfferInfoList(tGzOfferInfo));
}
/**
* 符合查询条件的数量
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
@Operation(description = "符合查询条件的数量")
@GetMapping("/count")
public R<Integer> getTGzOfferInfoCount(TGzOfferInfoVo tGzOfferInfo) {
if(Common.isEmpty(tGzOfferInfo.getOfferStatus())){
return new R<>(0);
}
return new R<>(tGzOfferInfoService.getTGzOfferInfoCount(tGzOfferInfo));
}
/**
* 通过id查询瓜子offer信息接收表
......@@ -101,6 +130,18 @@ public class TGzOfferInfoController {
return tGzOfferInfoService.updateStatus(tGzOfferInfo);
}
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R
*/
@Operation(summary = "瓜子候选人信息审核")
@SysLog("瓜子候选人信息审核" )
@PostMapping("/audit")
public R<String> offerAudit(@RequestBody TGzOfferInfo tGzOfferInfo) {
return tGzOfferInfoService.offerAudit(tGzOfferInfo);
}
/**
* 新增瓜子offer信息接收表
* @param tGzOfferInfo 瓜子offer信息接收表
......@@ -136,7 +177,7 @@ public class TGzOfferInfoController {
@Operation(summary = "单个/批量发送Offer提醒", description = "单个/批量发送Offer提醒")
@SysLog("单个/批量发送Offer提醒" )
@PostMapping("/sendOfferAlert")
public R<Boolean> sendOfferAlert(@RequestBody TGzOfferInfoVo tGzOfferInfo) {
public R<String> sendOfferAlert(@RequestBody TGzOfferInfoVo tGzOfferInfo) {
return tGzOfferInfoService.sendOfferAlert(tGzOfferInfo);
}
......
......@@ -48,4 +48,20 @@ public interface TGzOfferInfoMapper extends BaseMapper<TGzOfferInfo> {
* @return IPage<TGzOfferInfoVo>
*/
List<TGzOfferInfoVo> getTGzOfferInfoSendAlertList(@Param("tGzOfferInfo") TGzOfferInfoVo tGzOfferInfo);
/**
* 获取指定条数限制的列表
* @param tGzOfferInfo 瓜子offer信息接收表
* @return List<TGzOfferInfoVo>
*/
List<TGzOfferInfoVo> getTGzOfferInfoListHaveLimit(@Param("tGzOfferInfo") TGzOfferInfoVo tGzOfferInfo,
@Param("limitCount") Integer limitCount);
/**
* 获取指定条数限制的列表
* @param tGzOfferInfo 瓜子offer信息接收表
* @return List<TGzOfferInfoVo>
*/
Integer getTGzOfferInfoCount(@Param("tGzOfferInfo") TGzOfferInfoVo tGzOfferInfo);
}
......@@ -42,6 +42,22 @@ public interface TGzOfferInfoService extends IService<TGzOfferInfo> {
*/
IPage<TGzOfferInfoVo> getTGzOfferInfoPage(Page<TGzOfferInfoVo> page, TGzOfferInfoVo tGzOfferInfo);
/**
* 仅返回指定条数的列表数据
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List<TGzOfferInfoVo>>
*/
List<TGzOfferInfoVo> getTGzOfferInfoList(TGzOfferInfoVo tGzOfferInfo);
/**
* 符合查询条件的数量
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
Integer getTGzOfferInfoCount(TGzOfferInfoVo tGzOfferInfo);
TGzOfferInfo getDataById(Integer id);
/**
......@@ -58,9 +74,17 @@ public interface TGzOfferInfoService extends IService<TGzOfferInfo> {
*/
R<String> updateStatus(TGzOfferInfo tGzOfferInfo);
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 字典
* @return R<String>
*/
R<String> offerAudit(TGzOfferInfo tGzOfferInfo);
R<List<ErrorMessage>> importDiy(InputStream inputStream);
R sendOfferAlert(TGzOfferInfoVo tGzOfferInfo);
R<String> sendOfferAlert(TGzOfferInfoVo tGzOfferInfo);
}
......@@ -78,6 +78,28 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return baseMapper.getTGzOfferInfoPage(page,tGzOfferInfo);
}
/**
* 仅返回指定条数的列表数据
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List < TGzOfferInfoVo>>
*/
@Override
public List<TGzOfferInfoVo> getTGzOfferInfoList(TGzOfferInfoVo tGzOfferInfo) {
return baseMapper.getTGzOfferInfoListHaveLimit(tGzOfferInfo,2000);
}
/**
* 符合查询条件的数量
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
@Override
public Integer getTGzOfferInfoCount(TGzOfferInfoVo tGzOfferInfo) {
return baseMapper.getTGzOfferInfoCount(tGzOfferInfo);
}
@Override
public TGzOfferInfo getDataById(Integer id) {
return this.getInfoCommon(id);
......@@ -158,6 +180,58 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return R.ok(CommonConstants.RESULT_DATA_SUCESS);
}
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 字典
* @return R<String>
*/
@Override
public R<String> offerAudit(TGzOfferInfo tGzOfferInfo) {
YifuUser user = SecurityUtils.getUser();
if (user == null || Common.isEmpty(user.getId())) {
return R.failed(CommonConstants.PLEASE_LOG_IN);
}
if(Common.isEmpty(tGzOfferInfo.getId())){
return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY);
}
if(Common.isEmpty(tGzOfferInfo.getOfferStatus())){
return R.failed("审核结果不能为空");
}
TGzOfferInfo findInfo = this.getInfoCommon(tGzOfferInfo.getId());
if (Common.isEmpty(findInfo)){
return R.failed(CommonConstants.ERROR_NO_DOMAIN);
}
if (!CommonConstants.TWELVE_STRING.equals(findInfo.getOfferStatus())){
return R.failed("当前Offer不符合档案审核状态,禁止操作");
}
// 允许更新的Offer状态:97:候选人审核通过、9:候选人填写信息
String[] allowStatusArr = {"97", "9"};
if (!ArrayUtils.contains(allowStatusArr, tGzOfferInfo.getOfferStatus())) {
return R.failed("审核结果无效");
}
// todo 审核通过执行一下2个事件:
// todo 1、生成人员档案信息、项目档案信息
// todo 2、检查 该项目该人员是否有在途或审核通过或已归档的状态为“可用”的合同,
// 若有则根据当前状态更新Offer状态,合同未审核通过:存【13:待签署】;合同审核通过:存【8:合同审核通过】;合同已归档:存【99:已归档】,
// 存合同信息;
// 更新状态
LambdaUpdateWrapper<TGzOfferInfo> updateOfferWrapper = new LambdaUpdateWrapper<>();
updateOfferWrapper.eq(TGzOfferInfo::getId, tGzOfferInfo.getId())
.set(TGzOfferInfo::getOfferStatus, tGzOfferInfo.getOfferStatus())
.set(TGzOfferInfo::getUpdateTime, LocalDateTime.now())
.set(TGzOfferInfo::getUpdateBy, user.getId());
this.update(null, updateOfferWrapper);
// todo 记录offer操作日志
return R.ok(CommonConstants.RESULT_DATA_SUCESS);
}
/**
* 获取当前状态下,允许更新的状态列表
*
......@@ -261,7 +335,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
}
@Override
public R sendOfferAlert(TGzOfferInfoVo tGzOfferInfo) {
public R<String> sendOfferAlert(TGzOfferInfoVo tGzOfferInfo) {
//获取所有满足条件的未发送offer提醒的数据
if (Common.isNotNull(tGzOfferInfo)) {
tGzOfferInfo.setOfferStatus(CommonConstants.FOUR_STRING);
......
......@@ -303,14 +303,13 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
if (Common.isEmpty(domain.getServerItem())){
return ArchivesConstants.SETTLE_DOMAIN_SERVER_ITEM_NOT_EMPTY;
}
//fxj MVP1.7.12 倩倩说不需要了注释掉
/*if (Common.isEmpty(domain.getECity())
if (Common.isEmpty(domain.getECity())
|| Common.isEmpty(domain.getEProvince())){
return ArchivesConstants.SETTLE_DOMAIN_PROVINCE_NOT_EMPTY;
}*/
/*if ( Common.isEmpty(domain.getCreateType())){
}
if ( Common.isEmpty(domain.getCreateType())){
return "创建类型不可为空";
}*/
}
if (ArchivesConstants.CONTRACT_CREATE_TYPE.equals(domain.getCreateType())
&& (Common.isEmpty(domain.getBusinessPrimaryType())
|| Common.isEmpty(domain.getBusinessSecondType())
......
......@@ -73,6 +73,7 @@
<result property="contractEndDt" column="contract_end_dt"/>
<result property="probationDt" column="probation_dt"/>
<result property="prcExpDt" column="prc_exp_dt"/>
<result property="neeProviderId" column="nee_provider_id"/>
<result property="workLocation" column="work_location"/>
<result property="contractState" column="contract_state"/>
<result property="hukouType" column="hukou_type"/>
......@@ -90,6 +91,15 @@
<result property="accountCity" column="account_city"/>
<result property="accountEcId" column="account_ec_id"/>
<result property="accountName" column="account_name"/>
<result property="nativePlaceAreaId" column="native_place_area_id"/>
<result property="stateAreaId" column="state_area_id"/>
<result property="cityAreaId" column="city_area_id"/>
<result property="countyAreaId" column="county_area_id"/>
<result property="hukouProvinceAreaId" column="hukou_province_area_id"/>
<result property="hukouCityAreaId" column="hukou_city_area_id"/>
<result property="hukouCountyAreaId" column="hukou_county_area_id"/>
<result property="accountProvinceAreaId" column="account_province_area_id"/>
<result property="accountCityAreaId" column="account_city_area_id"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
......@@ -141,6 +151,7 @@
a.contract_end_dt,
a.probation_dt,
a.prc_exp_dt,
a.nee_provider_id,
a.work_location,
a.contract_state,
a.hukou_type,
......@@ -157,7 +168,16 @@
a.account_province,
a.account_city,
a.account_ec_id,
a.account_name
a.account_name,
a.native_place_area_id,
a.state_area_id,
a.city_area_id,
a.county_area_id,
a.hukou_province_area_id,
a.hukou_city_area_id,
a.hukou_county_area_id,
a.account_province_area_id,
a.account_city_area_id
</sql>
<sql id="tGzEmpInfo_where">
<if test="tGzEmpInfo != null">
......
......@@ -269,4 +269,25 @@
<include refid="tGzOfferInfo_where"/>
</where>
</select>
<!--根据条件获取指定条数限制的列表-->
<select id="getTGzOfferInfoListHaveLimit" resultMap="tGzOfferInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_offer_info a
<where>
a.del_flag = '0'
<include refid="tGzOfferInfo_where"/>
</where>
ORDER by a.create_time desc,a.id desc limit #{limitCount}
</select>
<!--根据条件获取数量-->
<select id="getTGzOfferInfoCount" resultType="integer">
SELECT count(1) FROM t_gz_offer_info a
<where>
a.del_flag = '0'
<include refid="tGzOfferInfo_where"/>
</where>
</select>
</mapper>
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.admin.api.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Data
@TableName("sys_guazi_bank_branch")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子银行支行信息")
public class SysGuaziBankBranch extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.AUTO)
@ExcelProperty("id")
@Schema(description = "id")
private Integer id;
/**
* 大行编码
*/
@ExcelAttribute(name = "大行编码", maxLength = 11)
@Length(max = 11, message = "大行编码不能超过11个字符")
@ExcelProperty("大行编码")
@Schema(description = "大行编码")
private String bankCd;
/**
* 联行号ID
*/
@ExcelAttribute(name = "联行号ID")
@ExcelProperty("联行号ID")
@Schema(description = "联行号ID")
private Integer cnapsId;
/**
* 联行号
*/
@ExcelAttribute(name = "联行号", maxLength = 30)
@Length(max = 30, message = "联行号不能超过30个字符")
@ExcelProperty("联行号")
@Schema(description = "联行号")
private String cnapsNum;
/**
* 支行名称
*/
@ExcelAttribute(name = "支行名称", maxLength = 50)
@Length(max = 50, message = "支行名称不能超过50个字符")
@ExcelProperty("支行名称")
@Schema(description = "支行名称")
private String bankDescr;
/**
* 所在省编码
*/
@ExcelAttribute(name = "所在省编码", maxLength = 15)
@Length(max = 15, message = "所在省编码不能超过15个字符")
@ExcelProperty("所在省编码")
@Schema(description = "所在省编码")
private String stateId;
/**
* 所在市编码
*/
@ExcelAttribute(name = "所在市编码", maxLength = 15)
@Length(max = 15, message = "所在市编码不能超过15个字符")
@ExcelProperty("所在市编码")
@Schema(description = "所在市编码")
private String cityId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.admin.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysGuaziBankBranchService;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.*;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/sysguazibankbranch")
@Tag(name = "瓜子银行支行信息管理")
public class SysGuaziBankBranchController {
private final SysGuaziBankBranchService sysGuaziBankBranchService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<SysGuaziBankBranch>> getSysGuaziBankBranchPage(Page<SysGuaziBankBranch> page, SysGuaziBankBranch sysGuaziBankBranch) {
return new R<>(sysGuaziBankBranchService.getSysGuaziBankBranchPage(page, sysGuaziBankBranch));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Mapper
public interface SysGuaziBankBranchMapper extends BaseMapper<SysGuaziBankBranch> {
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return
*/
IPage<SysGuaziBankBranch> getSysGuaziBankBranchPage(Page<SysGuaziBankBranch> page, @Param("sysGuaziBankBranch") SysGuaziBankBranch sysGuaziBankBranch);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.admin.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
public interface SysGuaziBankBranchService extends IService<SysGuaziBankBranch> {
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return IPage<SysGuaziBankBranch>
*/
IPage<SysGuaziBankBranch> getSysGuaziBankBranchPage(Page<SysGuaziBankBranch> page, SysGuaziBankBranch sysGuaziBankBranch);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.admin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch;
import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysGuaziBankBranchMapper;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysGuaziBankBranchService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class SysGuaziBankBranchServiceImpl extends ServiceImpl<SysGuaziBankBranchMapper, SysGuaziBankBranch> implements SysGuaziBankBranchService {
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return IPage<SysGuaziBankBranch>
*/
@Override
public IPage<SysGuaziBankBranch> getSysGuaziBankBranchPage(Page<SysGuaziBankBranch> page, SysGuaziBankBranch sysGuaziBankBranch) {
return baseMapper.getSysGuaziBankBranchPage(page, sysGuaziBankBranch);
}
}
......@@ -46,7 +46,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
/**
......
......@@ -42,6 +42,9 @@ security:
- /role/getRoleList
- /user/updateUserAndDept
- /dict/getParentDictItemByTypes
- /sysguazibankbranch/page
- /sysoutempforminfo/configList
- /dict/getDictMapByClientId
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.admin.mapper.SysGuaziBankBranchMapper">
<resultMap id="sysGuaziBankBranchMap" type="com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch">
<id property="id" column="id"/>
<result property="bankCd" column="bank_cd"/>
<result property="cnapsId" column="cnaps_id"/>
<result property="cnapsNum" column="cnaps_num"/>
<result property="bankDescr" column="bank_descr"/>
<result property="stateId" column="state_id"/>
<result property="cityId" column="city_id"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.bank_cd,
a.cnaps_id,
a.cnaps_num,
a.bank_descr,
a.state_id,
a.city_id,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time
</sql>
<sql id="sysGuaziBankBranch_where">
<if test="sysGuaziBankBranch != null">
<if test="sysGuaziBankBranch.id != null">
AND a.id = #{sysGuaziBankBranch.id}
</if>
<if test="sysGuaziBankBranch.bankCd != null and sysGuaziBankBranch.bankCd.trim() != ''">
AND a.bank_cd = #{sysGuaziBankBranch.bankCd}
</if>
<if test="sysGuaziBankBranch.cnapsId != null">
AND a.cnaps_id = #{sysGuaziBankBranch.cnapsId}
</if>
<if test="sysGuaziBankBranch.cnapsNum != null and sysGuaziBankBranch.cnapsNum.trim() != ''">
AND a.cnaps_num = #{sysGuaziBankBranch.cnapsNum}
</if>
<if test="sysGuaziBankBranch.bankDescr != null and sysGuaziBankBranch.bankDescr.trim() != ''">
AND a.bank_descr LIKE CONCAT('%',#{sysGuaziBankBranch.bankDescr},'%')
</if>
<if test="sysGuaziBankBranch.stateId != null and sysGuaziBankBranch.stateId.trim() != ''">
AND a.state_id = #{sysGuaziBankBranch.stateId}
</if>
<if test="sysGuaziBankBranch.cityId != null and sysGuaziBankBranch.cityId.trim() != ''">
AND a.city_id = #{sysGuaziBankBranch.cityId}
</if>
<if test="sysGuaziBankBranch.createTime != null">
AND a.create_time = #{sysGuaziBankBranch.createTime}
</if>
<if test="sysGuaziBankBranch.createBy != null and sysGuaziBankBranch.createBy.trim() != ''">
AND a.create_by = #{sysGuaziBankBranch.createBy}
</if>
<if test="sysGuaziBankBranch.createName != null and sysGuaziBankBranch.createName.trim() != ''">
AND a.create_name = #{sysGuaziBankBranch.createName}
</if>
<if test="sysGuaziBankBranch.updateBy != null and sysGuaziBankBranch.updateBy.trim() != ''">
AND a.update_by = #{sysGuaziBankBranch.updateBy}
</if>
<if test="sysGuaziBankBranch.updateTime != null">
AND a.update_time = #{sysGuaziBankBranch.updateTime}
</if>
</if>
</sql>
<!--sysGuaziBankBranch简单分页查询-->
<select id="getSysGuaziBankBranchPage" resultMap="sysGuaziBankBranchMap">
SELECT
<include refid="Base_Column_List"/>
FROM sys_guazi_bank_branch a
<where>
1=1
<include refid="sysGuaziBankBranch_where"/>
</where>
order by a.id
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment