Commit bb3a9663 authored by zhuangxinwei's avatar zhuangxinwei

Merge remote-tracking branch 'origin/master' into master

parents af6fdcb0 cae31395
...@@ -9,6 +9,7 @@ import java.util.List; ...@@ -9,6 +9,7 @@ import java.util.List;
import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.DataUtils;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
...@@ -71,7 +72,10 @@ public class FkqkServiceImpl implements IFkqkService ...@@ -71,7 +72,10 @@ public class FkqkServiceImpl implements IFkqkService
@Override @Override
public int insertFkqk(Fkqk fkqk) public int insertFkqk(Fkqk fkqk)
{ {
fkqk.setCreateBy(String.valueOf(SecurityUtils.getUserId())); String createBy = DataUtils.getValue(fkqk.getArea(), fkqk.getStreet(), fkqk.getCommunity());
if(createBy.equals("null"))
throw new ServiceException("所选居住地、街道、社区不存在");
fkqk.setCreateBy(createBy);
fkqk.setCreateTime(DateUtils.getNowDate()); fkqk.setCreateTime(DateUtils.getNowDate());
return fkqkMapper.insertFkqk(fkqk); return fkqkMapper.insertFkqk(fkqk);
} }
...@@ -85,6 +89,10 @@ public class FkqkServiceImpl implements IFkqkService ...@@ -85,6 +89,10 @@ public class FkqkServiceImpl implements IFkqkService
@Override @Override
public int updateFkqk(Fkqk fkqk) public int updateFkqk(Fkqk fkqk)
{ {
String createBy = DataUtils.getValue(fkqk.getArea(), fkqk.getStreet(), fkqk.getCommunity());
if(createBy.equals("null"))
throw new ServiceException("所选居住地、街道、社区不存在");
fkqk.setCreateBy(createBy);
fkqk.setUpdateTime(DateUtils.getNowDate()); fkqk.setUpdateTime(DateUtils.getNowDate());
return fkqkMapper.updateFkqk(fkqk); return fkqkMapper.updateFkqk(fkqk);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment