|
|
|
@ -2,10 +2,13 @@ package com.da.dangan.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.da.common.utils.DateUtils;
|
|
|
|
import com.da.common.utils.DateUtils;
|
|
|
|
import com.da.dangan.domain.DaCzrkdj;
|
|
|
|
import com.da.dangan.domain.DaCzrkdj;
|
|
|
|
|
|
|
|
import com.da.dangan.domain.DaPicturesRecard;
|
|
|
|
import com.da.dangan.mapper.DaCzrkdjMapper;
|
|
|
|
import com.da.dangan.mapper.DaCzrkdjMapper;
|
|
|
|
|
|
|
|
import com.da.dangan.mapper.DaPicturesRecardMapper;
|
|
|
|
import com.da.dangan.service.IDaCzrkdjService;
|
|
|
|
import com.da.dangan.service.IDaCzrkdjService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@ -20,7 +23,8 @@ public class DaCzrkdjServiceImpl implements IDaCzrkdjService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private DaCzrkdjMapper daCzrkdjMapper;
|
|
|
|
private DaCzrkdjMapper daCzrkdjMapper;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private DaPicturesRecardMapper daPicturesRecardMapper;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询常住人口登记
|
|
|
|
* 查询常住人口登记
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -65,8 +69,20 @@ public class DaCzrkdjServiceImpl implements IDaCzrkdjService
|
|
|
|
* @return 结果
|
|
|
|
* @return 结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
public int updateDaCzrkdj(DaCzrkdj daCzrkdj)
|
|
|
|
public int updateDaCzrkdj(DaCzrkdj daCzrkdj)
|
|
|
|
{
|
|
|
|
{ //修改纠错时 同步修改对应识别图片的纠错标识
|
|
|
|
|
|
|
|
if(daCzrkdj.getErrorCorrect().equals("1")){
|
|
|
|
|
|
|
|
String picIds = daCzrkdj.getPicIds();
|
|
|
|
|
|
|
|
String[] split = picIds.split(",");
|
|
|
|
|
|
|
|
for(String picId :split){
|
|
|
|
|
|
|
|
Long picid = Long.parseLong(picId);
|
|
|
|
|
|
|
|
DaPicturesRecard picturesRecard = new DaPicturesRecard();
|
|
|
|
|
|
|
|
picturesRecard.setId(picid);
|
|
|
|
|
|
|
|
picturesRecard.setErrorCorrect("1");
|
|
|
|
|
|
|
|
daPicturesRecardMapper.updateDaPicturesRecard(picturesRecard);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
daCzrkdj.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
daCzrkdj.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
return daCzrkdjMapper.updateDaCzrkdj(daCzrkdj);
|
|
|
|
return daCzrkdjMapper.updateDaCzrkdj(daCzrkdj);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|