Merge branch 'dev' into docker_package
This commit is contained in:
commit
0a0f3543c7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue