|
@@ -17,6 +17,9 @@ import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.system.mapper.SqmyUnitReplyMapper;
|
|
|
import com.ruoyi.system.service.ISqmyUnitReplyService;
|
|
|
|
|
|
+import static com.ruoyi.common.constant.CommonConstants.ONE;
|
|
|
+import static com.ruoyi.common.constant.CommonConstants.TWO;
|
|
|
+
|
|
|
/**
|
|
|
* 社情民意单位答复Service业务层处理
|
|
|
*
|
|
@@ -131,8 +134,13 @@ public class SqmyUnitReplyServiceImpl implements ISqmyUnitReplyService
|
|
|
}
|
|
|
|
|
|
if(sqmyUnitReply.getZxFjList()!=null && sqmyUnitReply.getZxFjList().size()>0){
|
|
|
+ ZxFj fj = new ZxFj();
|
|
|
+ fj.setSourceId(list.get(0).getId());
|
|
|
+ fj.setMainId(sqmyUnitReply.getSqmyId());
|
|
|
+ fj.setType(TWO);
|
|
|
+ fj.setStytle(list.get(0).getType());
|
|
|
//删除附件
|
|
|
- zxFjMapper.deleteZxFj(list.get(0).getId(),sqmyUnitReply.getSqmyId(),"2",list.get(0).getType());
|
|
|
+ zxFjMapper.deleteZxFj(fj);
|
|
|
for (ZxFj zxFj : sqmyUnitReply.getZxFjList()) {
|
|
|
zxFj.setMainId(sqmyUnitReply.getSqmyId());
|
|
|
zxFj.setSourceId(list.get(0).getId());
|