bug修改。
接口新增。
This commit is contained in:
parent
e32a03fea4
commit
975a89133e
@ -117,4 +117,10 @@ public interface IHouseUserSubDao {
|
||||
*/
|
||||
Integer count(Map<String, Object> params) throws SearchException;
|
||||
|
||||
/**
|
||||
* 通过户主(房主)ID删除其家庭成员信息
|
||||
* @param params
|
||||
* @throws RemoveException
|
||||
*/
|
||||
void removeSub(Map<String, Object> params) throws RemoveException;
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
package cn.com.tenlion.systemhouse.service.houseuser.impl;
|
||||
|
||||
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.dtos.houseuser.HouseUserDTO;
|
||||
import cn.com.tenlion.systemhouse.pojo.pos.houseuser.HouseUserPO;
|
||||
@ -31,6 +32,8 @@ public class HouseUserServiceImpl extends DefaultBaseService implements IHouseUs
|
||||
|
||||
@Autowired
|
||||
private IHouseUserDao houseUserDao;
|
||||
@Autowired
|
||||
private IHouseUserSubDao houseUserSubDao;
|
||||
|
||||
@Override
|
||||
public void save(HouseUserVO houseUserVO) {
|
||||
@ -76,6 +79,7 @@ public class HouseUserServiceImpl extends DefaultBaseService implements IHouseUs
|
||||
setAppUpdateInfo(token, params);
|
||||
}
|
||||
houseUserDao.remove(params);
|
||||
houseUserSubDao.removeSub(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -84,7 +84,6 @@
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 删除住户信息表(物理) -->
|
||||
<update id="delete" parameterType="map">
|
||||
DELETE FROM
|
||||
@ -96,6 +95,21 @@
|
||||
</foreach>
|
||||
</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
|
||||
@ -216,6 +230,8 @@
|
||||
house_house_user t1
|
||||
WHERE
|
||||
1 = 1
|
||||
AND
|
||||
t1.is_delete = 0
|
||||
<if test="buildingHouseId != null and buildingHouseId != ''">
|
||||
AND t1.building_house_id = #{buildingHouseId}
|
||||
</if>
|
||||
@ -252,7 +268,6 @@
|
||||
1 = 1
|
||||
<if test="keywords != null and keywords != ''">
|
||||
AND (
|
||||
<!-- 这里添加其他条件 -->
|
||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
|
@ -89,7 +89,6 @@
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 删除住户信息子表(物理) -->
|
||||
<update id="delete" parameterType="map">
|
||||
DELETE FROM
|
||||
@ -101,6 +100,36 @@
|
||||
</foreach>
|
||||
</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
|
||||
@ -228,6 +257,8 @@
|
||||
house_house_user_sub t1
|
||||
WHERE
|
||||
1 = 1
|
||||
AND
|
||||
t1.is_delete = 0
|
||||
<if test="houseUserId != null and houseUserId != ''">
|
||||
AND house_user_id = #{houseUserId}
|
||||
</if>
|
||||
|
@ -277,6 +277,9 @@
|
||||
$('#start').show();
|
||||
$('#end').show();
|
||||
$('#start').empty();
|
||||
$('#floorCountDiv').hide();
|
||||
$('#houseCountDiv').hide();
|
||||
$('#elevatorDiv').addClass("layui-col-lg12").removeClass("layui-col-lg4");
|
||||
for(var i = 0;i < unitCount;i++) {
|
||||
var html =
|
||||
'<div class="layui-form">' +
|
||||
|
Loading…
Reference in New Issue
Block a user