|
|
|
|
@ -1,12 +1,16 @@
|
|
|
|
|
package com.da.dangan.service.impl;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import com.da.common.utils.DateUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.da.dangan.mapper.DaZfnyhkcgMapper;
|
|
|
|
|
import com.da.dangan.domain.DaPicturesRecard;
|
|
|
|
|
import com.da.dangan.domain.DaZfnyhkcg;
|
|
|
|
|
import com.da.dangan.mapper.DaPicturesRecardMapper;
|
|
|
|
|
import com.da.dangan.mapper.DaZfnyhkcgMapper;
|
|
|
|
|
import com.da.dangan.service.IDaZfnyhkcgService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 转非农业人口批复存根Service业务层处理
|
|
|
|
|
@ -19,7 +23,8 @@ public class DaZfnyhkcgServiceImpl implements IDaZfnyhkcgService
|
|
|
|
|
{
|
|
|
|
|
@Autowired
|
|
|
|
|
private DaZfnyhkcgMapper daZfnyhkcgMapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private DaPicturesRecardMapper daPicturesRecardMapper;
|
|
|
|
|
/**
|
|
|
|
|
* 查询转非农业人口批复存根
|
|
|
|
|
*
|
|
|
|
|
@ -64,8 +69,21 @@ public class DaZfnyhkcgServiceImpl implements IDaZfnyhkcgService
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
public int updateDaZfnyhkcg(DaZfnyhkcg daZfnyhkcg)
|
|
|
|
|
{
|
|
|
|
|
//修改纠错时 同步修改对应识别图片的纠错标识
|
|
|
|
|
if(daZfnyhkcg.getErrorCorrect().equals("1")){
|
|
|
|
|
String picIds = daZfnyhkcg.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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
daZfnyhkcg.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
return daZfnyhkcgMapper.updateDaZfnyhkcg(daZfnyhkcg);
|
|
|
|
|
}
|
|
|
|
|
|