This commit is contained in:
parent
e1d243970a
commit
1a14dbe747
|
|
@ -16,7 +16,7 @@ public interface TbSubPeopleMapper {
|
||||||
|
|
||||||
TbSubPeopleVo getTbSubByIdCard(TbSubPeopleVo tbSubPeopleVo);
|
TbSubPeopleVo getTbSubByIdCard(TbSubPeopleVo tbSubPeopleVo);
|
||||||
|
|
||||||
void addTbSub(TbSubPeopleVo tbSubPeopleVo);
|
void addTbSubPeople(TbSubPeopleVo tbSubPeopleVo);
|
||||||
|
|
||||||
void updateTbSubPeople(TbSubPeopleVo tbSubPeopleVo);
|
void updateTbSubPeople(TbSubPeopleVo tbSubPeopleVo);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,10 @@ public class TbSubPeopleServiceImpl implements TbSubPeopleService {
|
||||||
}
|
}
|
||||||
tbSubPeopleVo.setCreateUser(SecurityUtils.getLoginUser().getUsername());
|
tbSubPeopleVo.setCreateUser(SecurityUtils.getLoginUser().getUsername());
|
||||||
tbSubPeopleVo.setCreateTime(new Date());
|
tbSubPeopleVo.setCreateTime(new Date());
|
||||||
tbSubPeopleMapper.addTbSub(tbSubPeopleVo);
|
tbSubPeopleMapper.addTbSubPeople(tbSubPeopleVo);
|
||||||
tbFileSourceService.addTbFileSource(tbSubPeopleVo.getTbFileSourceVoList(),tbSubPeopleVo.getId(), TableType.TB_SUB_PEOPLE.getCode());
|
if (!tbSubPeopleVo.getTbFileSourceVoList().isEmpty()){
|
||||||
|
tbFileSourceService.addTbFileSource(tbSubPeopleVo.getTbFileSourceVoList(),tbSubPeopleVo.getId(), TableType.TB_SUB_PEOPLE.getCode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.tool.mapper.TbSubPeopleMapper">
|
<mapper namespace="com.bonus.tool.mapper.TbSubPeopleMapper">
|
||||||
<insert id="addTbSub" useGeneratedKeys="true" keyProperty="id">
|
<insert id="addTbSubPeople" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into tb_sub
|
insert into tb_sub_people
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="userName != null and userName != ''">user_name,</if>
|
<if test="userName != null and userName != ''">user_name,</if>
|
||||||
<if test="idCard != null and idCard != ''">id_card,</if>
|
<if test="idCard != null and idCard != ''">id_card,</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue