修改诺干问题
This commit is contained in:
parent
d935b6c700
commit
6be7938bfb
|
@ -0,0 +1,18 @@
|
|||
package com.cj.jiaqingjiayi.mapper;
|
||||
|
||||
import com.cj.jiaqingjiayi.model.domain.Manicuristsign;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author 高木
|
||||
* @description 针对表【manicuristsign(美甲师表)】的数据库操作Mapper
|
||||
* @createDate 2025-02-26 19:29:22
|
||||
* @Entity com.cj.jiaqingjiayi.model.domain.Manicuristsign
|
||||
*/
|
||||
public interface ManicuristsignMapper extends BaseMapper<Manicuristsign> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.cj.jiaqingjiayi.model.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 美甲师签约表
|
||||
* @TableName manicuristsign
|
||||
*/
|
||||
@TableName(value ="manicuristsign")
|
||||
@Data
|
||||
public class Manicuristsign implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 美甲师ID(关联美甲师表)
|
||||
*/
|
||||
private Long manicuristId;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String businessName;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 期望工资薪资
|
||||
*/
|
||||
private BigDecimal salary;
|
||||
|
||||
/**
|
||||
* 签约时长
|
||||
*/
|
||||
private String signTime;
|
||||
|
||||
/**
|
||||
* 工龄
|
||||
*/
|
||||
private String tenure;
|
||||
|
||||
/**
|
||||
* 美甲师等级
|
||||
*/
|
||||
private String manicuristLv;
|
||||
|
||||
/**
|
||||
* 审核状态,0-待审核,1-审核通过,2-审核不通过
|
||||
*/
|
||||
private Integer auditStatus;
|
||||
|
||||
/**
|
||||
* 逻辑删除标志,0 表示未删除,1 表示已删除
|
||||
*/
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 记录创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 记录更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.cj.jiaqingjiayi.service;
|
||||
|
||||
import com.cj.jiaqingjiayi.model.domain.Manicuristsign;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.cj.jiaqingjiayi.model.vo.ManicuristsignVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 高木
|
||||
* @description 针对表【manicuristsign(美甲师表)】的数据库操作Service
|
||||
* @createDate 2025-02-26 19:29:22
|
||||
*/
|
||||
public interface ManicuristsignService extends IService<Manicuristsign> {
|
||||
|
||||
/**
|
||||
* 获取脱敏后的签约表
|
||||
*/
|
||||
ManicuristsignVO getManicuristsignVO(Manicuristsign manicuristsign);
|
||||
|
||||
/**
|
||||
* 获取签约脱敏列表
|
||||
*/
|
||||
List<ManicuristsignVO> getManicuristsignVO(List<Manicuristsign> manicuristsignList);
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
package com.cj.jiaqingjiayi.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.cj.jiaqingjiayi.model.domain.Manicurist;
|
||||
import com.cj.jiaqingjiayi.model.domain.Manicuristsign;
|
||||
import com.cj.jiaqingjiayi.model.vo.ManicuristVO;
|
||||
import com.cj.jiaqingjiayi.model.vo.ManicuristsignVO;
|
||||
import com.cj.jiaqingjiayi.service.ManicuristsignService;
|
||||
import com.cj.jiaqingjiayi.mapper.ManicuristsignMapper;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author 高木
|
||||
* @description 针对表【manicuristsign(美甲师表)】的数据库操作Service实现
|
||||
* @createDate 2025-02-26 19:29:22
|
||||
*/
|
||||
@Service
|
||||
public class ManicuristsignServiceImpl extends ServiceImpl<ManicuristsignMapper, Manicuristsign>
|
||||
implements ManicuristsignService{
|
||||
|
||||
@Override
|
||||
public ManicuristsignVO getManicuristsignVO(Manicuristsign manicuristsign) {
|
||||
if(manicuristsign == null ){
|
||||
return null;
|
||||
}
|
||||
ManicuristsignVO manicuristsignVO = new ManicuristsignVO();
|
||||
BeanUtils.copyProperties(manicuristsign, manicuristsignVO);
|
||||
return manicuristsignVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ManicuristsignVO> getManicuristsignVO(List<Manicuristsign> manicuristsignList) {
|
||||
if(CollectionUtils.isEmpty(manicuristsignList)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return manicuristsignList.stream().map(this::getManicuristsignVO).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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.cj.jiaqingjiayi.mapper.ManicuristsignMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.cj.jiaqingjiayi.model.domain.Manicuristsign">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="manicuristId" column="manicuristId" jdbcType="BIGINT"/>
|
||||
<result property="businessName" column="businessName" jdbcType="VARCHAR"/>
|
||||
<result property="phone" column="phone" jdbcType="VARCHAR"/>
|
||||
<result property="salary" column="salary" jdbcType="DECIMAL"/>
|
||||
<result property="signTime" column="signTime" jdbcType="VARCHAR"/>
|
||||
<result property="tenure" column="tenure" jdbcType="VARCHAR"/>
|
||||
<result property="manicuristLv" column="manicuristLv" jdbcType="VARCHAR"/>
|
||||
<result property="auditStatus" column="auditStatus" jdbcType="TINYINT"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,manicuristId,
|
||||
businessName,phone,salary,
|
||||
signTime,tenure,manicuristLv,
|
||||
auditStatus,isDelete,createTime,
|
||||
updateTime
|
||||
</sql>
|
||||
</mapper>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,30 @@
|
|||
<?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.cj.jiaqingjiayi.mapper.ManicuristsignMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.cj.jiaqingjiayi.model.domain.Manicuristsign">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="manicuristId" column="manicuristId" jdbcType="BIGINT"/>
|
||||
<result property="businessName" column="businessName" jdbcType="VARCHAR"/>
|
||||
<result property="phone" column="phone" jdbcType="VARCHAR"/>
|
||||
<result property="salary" column="salary" jdbcType="DECIMAL"/>
|
||||
<result property="signTime" column="signTime" jdbcType="VARCHAR"/>
|
||||
<result property="tenure" column="tenure" jdbcType="VARCHAR"/>
|
||||
<result property="manicuristLv" column="manicuristLv" jdbcType="VARCHAR"/>
|
||||
<result property="auditStatus" column="auditStatus" jdbcType="TINYINT"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,manicuristId,
|
||||
businessName,phone,salary,
|
||||
signTime,tenure,manicuristLv,
|
||||
auditStatus,isDelete,createTime,
|
||||
updateTime
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user