|
@@ -24,6 +24,8 @@ import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.system.mapper.SqmyInfoMapper;
|
|
|
import com.ruoyi.system.service.ISqmyInfoService;
|
|
|
|
|
|
+import static com.ruoyi.common.constant.CommonConstants.*;
|
|
|
+
|
|
|
/**
|
|
|
* 社情民意信息Service业务层处理
|
|
|
*
|
|
@@ -230,8 +232,13 @@ public class SqmyInfoServiceImpl implements ISqmyInfoService
|
|
|
@Override
|
|
|
public int updateSqmyInfo(SqmyInfo sqmyInfo)
|
|
|
{
|
|
|
+ ZxFj fj = new ZxFj();
|
|
|
+ fj.setSourceId(sqmyInfo.getSqmyId());
|
|
|
+ fj.setMainId(sqmyInfo.getSqmyId());
|
|
|
+ fj.setType(TWO);
|
|
|
+ fj.setStytle(FOR);
|
|
|
//删除附件
|
|
|
- zxFjMapper.deleteZxFjBySourceId(sqmyInfo.getSqmyId());
|
|
|
+ zxFjMapper.deleteZxFj(fj);
|
|
|
if(sqmyInfo.getZxFjList()!=null && sqmyInfo.getZxFjList().size()>0){
|
|
|
for (ZxFj zxFj : sqmyInfo.getZxFjList()) {
|
|
|
zxFj.setMainId(sqmyInfo.getSqmyId());
|
|
@@ -333,6 +340,14 @@ public class SqmyInfoServiceImpl implements ISqmyInfoService
|
|
|
@Override
|
|
|
public AjaxResult zxIdea(SqmyInfo sqmyInfo) {
|
|
|
sqmyInfo.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ ZxFj fj = new ZxFj();
|
|
|
+ fj.setSourceId(sqmyInfo.getSqmyId());
|
|
|
+ fj.setMainId(sqmyInfo.getSqmyId());
|
|
|
+ fj.setType(TWO);
|
|
|
+ fj.setStytle(SIX);
|
|
|
+ //删除附件
|
|
|
+ zxFjMapper.deleteZxFj(fj);
|
|
|
+
|
|
|
if(sqmyInfo.getZxFjList()!=null && sqmyInfo.getZxFjList().size()>0){
|
|
|
for (ZxFj zxFj : sqmyInfo.getZxFjList()) {
|
|
|
zxFj.setMainId(sqmyInfo.getSqmyId());
|