业务逻辑完善补充
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package com.vetti.hotake.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import com.vetti.common.annotation.Excel;
|
||||
import com.vetti.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用户合规性信息对象 hotake_compliance_info
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class HotakeComplianceInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
@ApiModelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty("名称")
|
||||
@Excel(name = "名称")
|
||||
private String fileName;
|
||||
|
||||
/** 附件类型(如:image/jpeg, application/pdf等) */
|
||||
@ApiModelProperty("附件类型(如:image/jpeg, application/pdf等)")
|
||||
@Excel(name = "附件类型", readConverterExp = "如=:image/jpeg,,a=pplication/pdf等")
|
||||
private String fileType;
|
||||
|
||||
/** 附件地址 */
|
||||
@ApiModelProperty("附件地址")
|
||||
@Excel(name = "附件地址")
|
||||
private String fileUrl;
|
||||
|
||||
/** 附件文件后缀 */
|
||||
@ApiModelProperty("附件文件后缀")
|
||||
@Excel(name = "附件文件后缀")
|
||||
private String fileSuffix;
|
||||
|
||||
/** 附件文件大小 */
|
||||
@ApiModelProperty("附件文件大小")
|
||||
@Excel(name = "附件文件大小")
|
||||
private String fileSizeShow;
|
||||
|
||||
/** 状态(verified 验证,pending 待验证) */
|
||||
@ApiModelProperty("状态(verified 验证,pending 待验证)")
|
||||
@Excel(name = "状态", readConverterExp = "v=erified,验=证,pending,待=验证")
|
||||
private String status;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.vetti.hotake.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import com.vetti.common.annotation.Excel;
|
||||
import com.vetti.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 岗位申请操作信息对象 hotake_roles_apply_oper_record
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class HotakeRolesApplyOperRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
@ApiModelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
/** 岗位ID */
|
||||
@ApiModelProperty("岗位ID")
|
||||
@Excel(name = "岗位ID")
|
||||
private Long roleId;
|
||||
|
||||
/** 岗位申请ID */
|
||||
@ApiModelProperty("岗位申请ID")
|
||||
@Excel(name = "岗位申请ID")
|
||||
private Long roleApplyId;
|
||||
|
||||
/** 当前阶段 */
|
||||
@ApiModelProperty("当前阶段")
|
||||
@Excel(name = "当前阶段")
|
||||
private String applyStage;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.vetti.hotake.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.vetti.hotake.domain.HotakeComplianceInfo;
|
||||
|
||||
/**
|
||||
* 用户合规性信息Mapper接口
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
public interface HotakeComplianceInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询用户合规性信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 用户合规性信息
|
||||
*/
|
||||
public HotakeComplianceInfo selectHotakeComplianceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户合规性信息列表
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 用户合规性信息集合
|
||||
*/
|
||||
public List<HotakeComplianceInfo> selectHotakeComplianceInfoList(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 修改用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 删除用户合规性信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeComplianceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户合规性信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeComplianceInfoByIds(Long[] ids);
|
||||
/**
|
||||
* 批量新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfoList 用户合规性信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeComplianceInfo(List<HotakeComplianceInfo> hotakeComplianceInfoList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.vetti.hotake.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.vetti.hotake.domain.HotakeRolesApplyOperRecord;
|
||||
|
||||
/**
|
||||
* 岗位申请操作信息Mapper接口
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
public interface HotakeRolesApplyOperRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询岗位申请操作信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 岗位申请操作信息
|
||||
*/
|
||||
public HotakeRolesApplyOperRecord selectHotakeRolesApplyOperRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询岗位申请操作信息列表
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 岗位申请操作信息集合
|
||||
*/
|
||||
public List<HotakeRolesApplyOperRecord> selectHotakeRolesApplyOperRecordList(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 修改岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 删除岗位申请操作信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeRolesApplyOperRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除岗位申请操作信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeRolesApplyOperRecordByIds(Long[] ids);
|
||||
/**
|
||||
* 批量新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecordList 岗位申请操作信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeRolesApplyOperRecord(List<HotakeRolesApplyOperRecord> hotakeRolesApplyOperRecordList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.vetti.hotake.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.vetti.hotake.domain.HotakeComplianceInfo;
|
||||
|
||||
/**
|
||||
* 用户合规性信息Service接口
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
public interface IHotakeComplianceInfoService
|
||||
{
|
||||
/**
|
||||
* 查询用户合规性信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 用户合规性信息
|
||||
*/
|
||||
public HotakeComplianceInfo selectHotakeComplianceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户合规性信息列表
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 用户合规性信息集合
|
||||
*/
|
||||
public List<HotakeComplianceInfo> selectHotakeComplianceInfoList(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 修改用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除用户合规性信息
|
||||
*
|
||||
* @param ids 需要删除的用户合规性信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeComplianceInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除用户合规性信息信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeComplianceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfoList 用户合规性信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeComplianceInfo(List<HotakeComplianceInfo> hotakeComplianceInfoList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.vetti.hotake.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.vetti.hotake.domain.HotakeRolesApplyOperRecord;
|
||||
|
||||
/**
|
||||
* 岗位申请操作信息Service接口
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
public interface IHotakeRolesApplyOperRecordService
|
||||
{
|
||||
/**
|
||||
* 查询岗位申请操作信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 岗位申请操作信息
|
||||
*/
|
||||
public HotakeRolesApplyOperRecord selectHotakeRolesApplyOperRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询岗位申请操作信息列表
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 岗位申请操作信息集合
|
||||
*/
|
||||
public List<HotakeRolesApplyOperRecord> selectHotakeRolesApplyOperRecordList(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 修改岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord);
|
||||
|
||||
/**
|
||||
* 批量删除岗位申请操作信息
|
||||
*
|
||||
* @param ids 需要删除的岗位申请操作信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeRolesApplyOperRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除岗位申请操作信息信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotakeRolesApplyOperRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecordList 岗位申请操作信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertHotakeRolesApplyOperRecord(List<HotakeRolesApplyOperRecord> hotakeRolesApplyOperRecordList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.vetti.hotake.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fleet.common.core.service.BaseServiceImpl;
|
||||
import com.fleet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.vetti.hotake.mapper.HotakeComplianceInfoMapper;
|
||||
import com.vetti.hotake.domain.HotakeComplianceInfo;
|
||||
import com.vetti.hotake.service.IHotakeComplianceInfoService;
|
||||
|
||||
/**
|
||||
* 用户合规性信息Service业务层处理
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
@Service
|
||||
public class HotakeComplianceInfoServiceImpl extends BaseServiceImpl implements IHotakeComplianceInfoService
|
||||
{
|
||||
@Autowired
|
||||
private HotakeComplianceInfoMapper hotakeComplianceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询用户合规性信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 用户合规性信息
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
@Override
|
||||
public HotakeComplianceInfo selectHotakeComplianceInfoById(Long id)
|
||||
{
|
||||
return hotakeComplianceInfoMapper.selectHotakeComplianceInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户合规性信息列表
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 用户合规性信息
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
@Override
|
||||
public List<HotakeComplianceInfo> selectHotakeComplianceInfoList(HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
return hotakeComplianceInfoMapper.selectHotakeComplianceInfoList(hotakeComplianceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int insertHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
hotakeComplianceInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return hotakeComplianceInfoMapper.insertHotakeComplianceInfo(hotakeComplianceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfo 用户合规性信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int updateHotakeComplianceInfo(HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
hotakeComplianceInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return hotakeComplianceInfoMapper.updateHotakeComplianceInfo(hotakeComplianceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户合规性信息
|
||||
*
|
||||
* @param ids 需要删除的用户合规性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int deleteHotakeComplianceInfoByIds(Long[] ids)
|
||||
{
|
||||
return hotakeComplianceInfoMapper.deleteHotakeComplianceInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户合规性信息信息
|
||||
*
|
||||
* @param id 用户合规性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int deleteHotakeComplianceInfoById(Long id)
|
||||
{
|
||||
return hotakeComplianceInfoMapper.deleteHotakeComplianceInfoById(id);
|
||||
}
|
||||
/**
|
||||
* 批量新增用户合规性信息
|
||||
*
|
||||
* @param hotakeComplianceInfoList 用户合规性信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int batchInsertHotakeComplianceInfo(List<HotakeComplianceInfo> hotakeComplianceInfoList){
|
||||
return hotakeComplianceInfoMapper.batchInsertHotakeComplianceInfo(hotakeComplianceInfoList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.vetti.hotake.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.vetti.common.core.service.BaseServiceImpl;
|
||||
import com.vetti.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.vetti.hotake.mapper.HotakeRolesApplyOperRecordMapper;
|
||||
import com.vetti.hotake.domain.HotakeRolesApplyOperRecord;
|
||||
import com.vetti.hotake.service.IHotakeRolesApplyOperRecordService;
|
||||
|
||||
/**
|
||||
* 岗位申请操作信息Service业务层处理
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
@Service
|
||||
public class HotakeRolesApplyOperRecordServiceImpl extends BaseServiceImpl implements IHotakeRolesApplyOperRecordService
|
||||
{
|
||||
@Autowired
|
||||
private HotakeRolesApplyOperRecordMapper hotakeRolesApplyOperRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询岗位申请操作信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 岗位申请操作信息
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
@Override
|
||||
public HotakeRolesApplyOperRecord selectHotakeRolesApplyOperRecordById(Long id)
|
||||
{
|
||||
return hotakeRolesApplyOperRecordMapper.selectHotakeRolesApplyOperRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询岗位申请操作信息列表
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 岗位申请操作信息
|
||||
*/
|
||||
@Transactional(readOnly = true)
|
||||
@Override
|
||||
public List<HotakeRolesApplyOperRecord> selectHotakeRolesApplyOperRecordList(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
return hotakeRolesApplyOperRecordMapper.selectHotakeRolesApplyOperRecordList(hotakeRolesApplyOperRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int insertHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
hotakeRolesApplyOperRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return hotakeRolesApplyOperRecordMapper.insertHotakeRolesApplyOperRecord(hotakeRolesApplyOperRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecord 岗位申请操作信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int updateHotakeRolesApplyOperRecord(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
hotakeRolesApplyOperRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return hotakeRolesApplyOperRecordMapper.updateHotakeRolesApplyOperRecord(hotakeRolesApplyOperRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除岗位申请操作信息
|
||||
*
|
||||
* @param ids 需要删除的岗位申请操作信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int deleteHotakeRolesApplyOperRecordByIds(Long[] ids)
|
||||
{
|
||||
return hotakeRolesApplyOperRecordMapper.deleteHotakeRolesApplyOperRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除岗位申请操作信息信息
|
||||
*
|
||||
* @param id 岗位申请操作信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int deleteHotakeRolesApplyOperRecordById(Long id)
|
||||
{
|
||||
return hotakeRolesApplyOperRecordMapper.deleteHotakeRolesApplyOperRecordById(id);
|
||||
}
|
||||
/**
|
||||
* 批量新增岗位申请操作信息
|
||||
*
|
||||
* @param hotakeRolesApplyOperRecordList 岗位申请操作信息列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional(rollbackFor=Exception.class)
|
||||
@Override
|
||||
public int batchInsertHotakeRolesApplyOperRecord(List<HotakeRolesApplyOperRecord> hotakeRolesApplyOperRecordList){
|
||||
return hotakeRolesApplyOperRecordMapper.batchInsertHotakeRolesApplyOperRecord(hotakeRolesApplyOperRecordList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?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">
|
||||
<mapper namespace="com.vetti.hotake.mapper.HotakeComplianceInfoMapper">
|
||||
|
||||
<resultMap type="HotakeComplianceInfo" id="HotakeComplianceInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="fileType" column="file_type" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
<result property="fileSuffix" column="file_suffix" />
|
||||
<result property="fileSizeShow" column="file_size_show" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeComplianceInfoVo">
|
||||
select id, user_id, file_name, file_type, file_url, file_suffix, file_size_show, status, del_flag, create_by, create_time, update_by, update_time, remark from hotake_compliance_info
|
||||
</sql>
|
||||
|
||||
<select id="selectHotakeComplianceInfoList" parameterType="HotakeComplianceInfo" resultMap="HotakeComplianceInfoResult">
|
||||
<include refid="selectHotakeComplianceInfoVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
|
||||
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||
<if test="fileSuffix != null and fileSuffix != ''"> and file_suffix = #{fileSuffix}</if>
|
||||
<if test="fileSizeShow != null and fileSizeShow != ''"> and file_size_show = #{fileSizeShow}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectHotakeComplianceInfoById" parameterType="Long" resultMap="HotakeComplianceInfoResult">
|
||||
<include refid="selectHotakeComplianceInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHotakeComplianceInfo" parameterType="HotakeComplianceInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into hotake_compliance_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="fileName != null">file_name,</if>
|
||||
<if test="fileType != null">file_type,</if>
|
||||
<if test="fileUrl != null">file_url,</if>
|
||||
<if test="fileSuffix != null">file_suffix,</if>
|
||||
<if test="fileSizeShow != null">file_size_show,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="fileName != null">#{fileName},</if>
|
||||
<if test="fileType != null">#{fileType},</if>
|
||||
<if test="fileUrl != null">#{fileUrl},</if>
|
||||
<if test="fileSuffix != null">#{fileSuffix},</if>
|
||||
<if test="fileSizeShow != null">#{fileSizeShow},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHotakeComplianceInfo" parameterType="HotakeComplianceInfo">
|
||||
update hotake_compliance_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="fileName != null">file_name = #{fileName},</if>
|
||||
<if test="fileType != null">file_type = #{fileType},</if>
|
||||
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
||||
<if test="fileSuffix != null">file_suffix = #{fileSuffix},</if>
|
||||
<if test="fileSizeShow != null">file_size_show = #{fileSizeShow},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHotakeComplianceInfoById" parameterType="Long">
|
||||
delete from hotake_compliance_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeComplianceInfoByIds" parameterType="String">
|
||||
delete from hotake_compliance_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="batchInsertHotakeComplianceInfo">
|
||||
insert into hotake_compliance_info( id, user_id, file_name, file_type, file_url, file_suffix, file_size_show, status, del_flag, create_by, create_time, update_by, update_time, remark) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.userId}, #{item.fileName}, #{item.fileType}, #{item.fileUrl}, #{item.fileSuffix}, #{item.fileSizeShow}, #{item.status}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@@ -0,0 +1,97 @@
|
||||
<?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">
|
||||
<mapper namespace="com.vetti.hotake.mapper.HotakeRolesApplyOperRecordMapper">
|
||||
|
||||
<resultMap type="HotakeRolesApplyOperRecord" id="HotakeRolesApplyOperRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="roleId" column="role_id" />
|
||||
<result property="roleApplyId" column="role_apply_id" />
|
||||
<result property="applyStage" column="apply_stage" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeRolesApplyOperRecordVo">
|
||||
select id, role_id, role_apply_id, apply_stage, del_flag, create_by, create_time, update_by, update_time, remark from hotake_roles_apply_oper_record
|
||||
</sql>
|
||||
|
||||
<select id="selectHotakeRolesApplyOperRecordList" parameterType="HotakeRolesApplyOperRecord" resultMap="HotakeRolesApplyOperRecordResult">
|
||||
<include refid="selectHotakeRolesApplyOperRecordVo"/>
|
||||
<where>
|
||||
<if test="roleId != null "> and role_id = #{roleId}</if>
|
||||
<if test="roleApplyId != null "> and role_apply_id = #{roleApplyId}</if>
|
||||
<if test="applyStage != null and applyStage != ''"> and apply_stage = #{applyStage}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectHotakeRolesApplyOperRecordById" parameterType="Long" resultMap="HotakeRolesApplyOperRecordResult">
|
||||
<include refid="selectHotakeRolesApplyOperRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHotakeRolesApplyOperRecord" parameterType="HotakeRolesApplyOperRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into hotake_roles_apply_oper_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="roleId != null">role_id,</if>
|
||||
<if test="roleApplyId != null">role_apply_id,</if>
|
||||
<if test="applyStage != null">apply_stage,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="roleId != null">#{roleId},</if>
|
||||
<if test="roleApplyId != null">#{roleApplyId},</if>
|
||||
<if test="applyStage != null">#{applyStage},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHotakeRolesApplyOperRecord" parameterType="HotakeRolesApplyOperRecord">
|
||||
update hotake_roles_apply_oper_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="roleId != null">role_id = #{roleId},</if>
|
||||
<if test="roleApplyId != null">role_apply_id = #{roleApplyId},</if>
|
||||
<if test="applyStage != null">apply_stage = #{applyStage},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHotakeRolesApplyOperRecordById" parameterType="Long">
|
||||
delete from hotake_roles_apply_oper_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeRolesApplyOperRecordByIds" parameterType="String">
|
||||
delete from hotake_roles_apply_oper_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="batchInsertHotakeRolesApplyOperRecord">
|
||||
insert into hotake_roles_apply_oper_record( id, role_id, role_apply_id, apply_stage, del_flag, create_by, create_time, update_by, update_time, remark) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.roleId}, #{item.roleApplyId}, #{item.applyStage}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user