Merge branch 'dev' into docker_package

This commit is contained in:
wangliwen 2022-07-07 15:18:38 +08:00
commit 0a0f3543c7
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import io.renren.modules.notice.service.SysNoticeService;
import io.renren.modules.sys.dto.SysUserDTO;
import io.renren.modules.sys.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import java.util.Date;
@ -43,6 +44,8 @@ public class TDemandCommentServiceImpl extends CrudServiceImpl<TDemandCommentDao
private SysUserService sysUserService;
@Autowired
private SysNoticeService sysNoticeService;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public QueryWrapper<TDemandCommentEntity> getWrapper(Map<String, Object> params) {
@ -107,6 +110,7 @@ public class TDemandCommentServiceImpl extends CrudServiceImpl<TDemandCommentDao
dto.setCreateDate(new Date());
dto.setFrom("评论");
sysNoticeService.save(dto);
jdbcTemplate.update("UPDATE t_demand_comment SET del_flag = 0 WHERE id = " + tDemandCommentDTO.getId());
}, executor);
}
}