bug修改。

接口新增。
This commit is contained in:
Renpc-kilig 2021-10-12 09:31:11 +08:00
parent e32a03fea4
commit 975a89133e
5 changed files with 62 additions and 3 deletions

View File

@ -117,4 +117,10 @@ public interface IHouseUserSubDao {
*/ */
Integer count(Map<String, Object> params) throws SearchException; Integer count(Map<String, Object> params) throws SearchException;
/**
* 通过户主(房主)ID删除其家庭成员信息
* @param params
* @throws RemoveException
*/
void removeSub(Map<String, Object> params) throws RemoveException;
} }

View File

@ -1,6 +1,7 @@
package cn.com.tenlion.systemhouse.service.houseuser.impl; package cn.com.tenlion.systemhouse.service.houseuser.impl;
import cn.com.tenlion.systemhouse.dao.houseuser.IHouseUserDao; import cn.com.tenlion.systemhouse.dao.houseuser.IHouseUserDao;
import cn.com.tenlion.systemhouse.dao.houseusersub.IHouseUserSubDao;
import cn.com.tenlion.systemhouse.pojo.bos.houseuser.HouseUserBO; import cn.com.tenlion.systemhouse.pojo.bos.houseuser.HouseUserBO;
import cn.com.tenlion.systemhouse.pojo.dtos.houseuser.HouseUserDTO; import cn.com.tenlion.systemhouse.pojo.dtos.houseuser.HouseUserDTO;
import cn.com.tenlion.systemhouse.pojo.pos.houseuser.HouseUserPO; import cn.com.tenlion.systemhouse.pojo.pos.houseuser.HouseUserPO;
@ -31,6 +32,8 @@ public class HouseUserServiceImpl extends DefaultBaseService implements IHouseUs
@Autowired @Autowired
private IHouseUserDao houseUserDao; private IHouseUserDao houseUserDao;
@Autowired
private IHouseUserSubDao houseUserSubDao;
@Override @Override
public void save(HouseUserVO houseUserVO) { public void save(HouseUserVO houseUserVO) {
@ -76,6 +79,7 @@ public class HouseUserServiceImpl extends DefaultBaseService implements IHouseUs
setAppUpdateInfo(token, params); setAppUpdateInfo(token, params);
} }
houseUserDao.remove(params); houseUserDao.remove(params);
houseUserSubDao.removeSub(params);
} }
@Override @Override

View File

@ -84,7 +84,6 @@
) )
</insert> </insert>
<!-- 删除住户信息表(物理) --> <!-- 删除住户信息表(物理) -->
<update id="delete" parameterType="map"> <update id="delete" parameterType="map">
DELETE FROM DELETE FROM
@ -96,6 +95,21 @@
</foreach> </foreach>
</update> </update>
<!-- 删除住户信息表 -->
<update id="remove" parameterType="map">
UPDATE
house_house_user
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
house_user_id IN
<foreach collection="houseUserIds" index="index" open="(" separator="," close=")">
#{houseUserIds[${index}]}
</foreach>
</update>
<!-- 修改住户信息表 --> <!-- 修改住户信息表 -->
<update id="update" parameterType="map"> <update id="update" parameterType="map">
UPDATE UPDATE
@ -216,6 +230,8 @@
house_house_user t1 house_house_user t1
WHERE WHERE
1 = 1 1 = 1
AND
t1.is_delete = 0
<if test="buildingHouseId != null and buildingHouseId != ''"> <if test="buildingHouseId != null and buildingHouseId != ''">
AND t1.building_house_id = #{buildingHouseId} AND t1.building_house_id = #{buildingHouseId}
</if> </if>
@ -252,7 +268,6 @@
1 = 1 1 = 1
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
AND ( AND (
<!-- 这里添加其他条件 -->
t1.id LIKE CONCAT('%', #{keywords}, '%') t1.id LIKE CONCAT('%', #{keywords}, '%')
) )
</if> </if>

View File

@ -89,7 +89,6 @@
) )
</insert> </insert>
<!-- 删除住户信息子表(物理) --> <!-- 删除住户信息子表(物理) -->
<update id="delete" parameterType="map"> <update id="delete" parameterType="map">
DELETE FROM DELETE FROM
@ -101,6 +100,36 @@
</foreach> </foreach>
</update> </update>
<!-- 删除住户信息表 -->
<update id="remove" parameterType="map">
UPDATE
house_house_user_sub
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
house_user_sub_id IN
<foreach collection="houseUserSubIds" index="index" open="(" separator="," close=")">
#{houseUserSubIds[${index}]}
</foreach>
</update>
<!-- 通过户主(房主)ID删除其家庭成员信息 -->
<update id="removeSub" parameterType="map">
UPDATE
house_house_user_sub
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
house_user_id IN
<foreach collection="houseUserIds" index="index" open="(" separator="," close=")">
#{houseUserIds[${index}]}
</foreach>
</update>
<!-- 修改住户信息子表 --> <!-- 修改住户信息子表 -->
<update id="update" parameterType="map"> <update id="update" parameterType="map">
UPDATE UPDATE
@ -228,6 +257,8 @@
house_house_user_sub t1 house_house_user_sub t1
WHERE WHERE
1 = 1 1 = 1
AND
t1.is_delete = 0
<if test="houseUserId != null and houseUserId != ''"> <if test="houseUserId != null and houseUserId != ''">
AND house_user_id = #{houseUserId} AND house_user_id = #{houseUserId}
</if> </if>

View File

@ -277,6 +277,9 @@
$('#start').show(); $('#start').show();
$('#end').show(); $('#end').show();
$('#start').empty(); $('#start').empty();
$('#floorCountDiv').hide();
$('#houseCountDiv').hide();
$('#elevatorDiv').addClass("layui-col-lg12").removeClass("layui-col-lg4");
for(var i = 0;i < unitCount;i++) { for(var i = 0;i < unitCount;i++) {
var html = var html =
'<div class="layui-form">' + '<div class="layui-form">' +