|
@@ -9,6 +9,8 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.business.zhsq_qk.bx.mapper.ZhsqPerBxMapper;
|
|
import com.business.zhsq_qk.bx.mapper.ZhsqPerBxMapper;
|
|
import com.business.zhsq_qk.canji.mapper.ZhsqPerCanjiMapper;
|
|
import com.business.zhsq_qk.canji.mapper.ZhsqPerCanjiMapper;
|
|
import com.business.zhsq_qk.dibao.mapper.ZhsqPerDibaoMapper;
|
|
import com.business.zhsq_qk.dibao.mapper.ZhsqPerDibaoMapper;
|
|
|
|
+import com.business.zhsq_qk.fangjian.domain.ZhsqFangjian;
|
|
|
|
+import com.business.zhsq_qk.fangjian.mapper.ZhsqFangjianMapper;
|
|
import com.business.zhsq_qk.fzjc.domain.ZhsqFzjc;
|
|
import com.business.zhsq_qk.fzjc.domain.ZhsqFzjc;
|
|
import com.business.zhsq_qk.js.mapper.ZhsqPerJsMapper;
|
|
import com.business.zhsq_qk.js.mapper.ZhsqPerJsMapper;
|
|
import com.business.zhsq_qk.junren.mapper.ZhsqPerJunrenMapper;
|
|
import com.business.zhsq_qk.junren.mapper.ZhsqPerJunrenMapper;
|
|
@@ -33,6 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.sooka.common.core.text.Convert;
|
|
import com.sooka.common.core.text.Convert;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 人口信息管理Service业务层处理
|
|
* 人口信息管理Service业务层处理
|
|
@@ -44,24 +47,26 @@ import org.springframework.transaction.annotation.Transactional;
|
|
@Transactional
|
|
@Transactional
|
|
public class ZhsqPersonServiceImpl implements IZhsqPersonService
|
|
public class ZhsqPersonServiceImpl implements IZhsqPersonService
|
|
{
|
|
{
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPersonMapper zhsqPersonMapper;
|
|
private ZhsqPersonMapper zhsqPersonMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerCanjiMapper zhsqPerCanjiMapper;
|
|
private ZhsqPerCanjiMapper zhsqPerCanjiMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerJunrenMapper zhsqPerJunrenMapper;
|
|
private ZhsqPerJunrenMapper zhsqPerJunrenMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerNcovMapper zhsqPerNcovMapper;
|
|
private ZhsqPerNcovMapper zhsqPerNcovMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerDibaoMapper zhsqPerDibaoMapper;
|
|
private ZhsqPerDibaoMapper zhsqPerDibaoMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerLlrMapper zhsqPerLlrMapper;
|
|
private ZhsqPerLlrMapper zhsqPerLlrMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerJsMapper zhsqPerJsMapper;
|
|
private ZhsqPerJsMapper zhsqPerJsMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerBxMapper zhsqPerBxMapper;
|
|
private ZhsqPerBxMapper zhsqPerBxMapper;
|
|
- @Autowired
|
|
|
|
|
|
+ @Resource
|
|
private ZhsqPerLiudongMapper zhsqPerLiudongMapper;
|
|
private ZhsqPerLiudongMapper zhsqPerLiudongMapper;
|
|
|
|
+ @Resource
|
|
|
|
+ private ZhsqFangjianMapper zhsqFangjianMapper;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询人口信息管理
|
|
* 查询人口信息管理
|
|
@@ -201,6 +206,12 @@ public class ZhsqPersonServiceImpl implements IZhsqPersonService
|
|
@Override
|
|
@Override
|
|
public int insertZhsqPerson(ZhsqPerson zhsqPerson)
|
|
public int insertZhsqPerson(ZhsqPerson zhsqPerson)
|
|
{
|
|
{
|
|
|
|
+ //给人口数据添加街道社区网格ID
|
|
|
|
+ ZhsqFangjian fangjian = zhsqFangjianMapper.selectZhsqFangjianById(zhsqPerson.getFjId());
|
|
|
|
+ zhsqPerson.setJdId(fangjian.getJdId());
|
|
|
|
+ zhsqPerson.setSqId(fangjian.getSqId());
|
|
|
|
+ zhsqPerson.setWgId(fangjian.getWgId());
|
|
|
|
+
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
zhsqPerson.setCreateId(sysUser.getUserId());
|
|
zhsqPerson.setCreateId(sysUser.getUserId());
|
|
zhsqPerson.setCreateUser(sysUser.getUserName());
|
|
zhsqPerson.setCreateUser(sysUser.getUserName());
|
|
@@ -228,6 +239,11 @@ public class ZhsqPersonServiceImpl implements IZhsqPersonService
|
|
@Override
|
|
@Override
|
|
public int updateZhsqPerson(ZhsqPerson zhsqPerson)
|
|
public int updateZhsqPerson(ZhsqPerson zhsqPerson)
|
|
{
|
|
{
|
|
|
|
+ //给人口数据添加街道社区网格ID
|
|
|
|
+ ZhsqFangjian fangjian = zhsqFangjianMapper.selectZhsqFangjianById(zhsqPerson.getFjId());
|
|
|
|
+ zhsqPerson.setJdId(fangjian.getJdId());
|
|
|
|
+ zhsqPerson.setSqId(fangjian.getSqId());
|
|
|
|
+ zhsqPerson.setWgId(fangjian.getWgId());
|
|
Long perId = zhsqPerson.getPerId();
|
|
Long perId = zhsqPerson.getPerId();
|
|
// 删除人员与特殊人群关联
|
|
// 删除人员与特殊人群关联
|
|
zhsqPersonMapper.deletePersonTsrqByPerId(perId);
|
|
zhsqPersonMapper.deletePersonTsrqByPerId(perId);
|