| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.modules.discuss.entity.PublicDiscussEntity; |
| | | import org.springblade.modules.discuss.entity.UserTopicsEntity; |
| | |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(userTopicsService.removeByIds(Func.toLongList(ids))); |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam Integer ids) { |
| | | UserTopicsEntity userTopicsEntity = new UserTopicsEntity(); |
| | | userTopicsEntity.setDeleteFlag(1); |
| | | userTopicsEntity.setId(ids); |
| | | return R.status(userTopicsService.updateById(userTopicsEntity)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "0否 1是", example = "") |
| | | @TableField("delete_flag") |
| | | @TableLogic |
| | | private Integer deleteFlag; |
| | | |
| | | /** |
| | |
| | | <select id="selectUserTopicsPage" resultMap="userTopicsResultMap"> |
| | | SELECT |
| | | jut.article_id, |
| | | jut.id, |
| | | jut.delete_flag, |
| | | jut.signature_path, |
| | | jut.create_time, |
| | | bu.avatar, |
| | | bu.`name`, |
| | | bu.phone, |
| | |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jh.house_code |
| | | <where> |
| | | <if test="userTopics.id != null ">and jut.id = #{userTopics.id}</if> |
| | | <if test="userTopics.name != null and userTopics.name != ''"> |
| | | and bu.name like concat('%',#{userTopics.name},'%') |
| | | </if> |
| | | <if test="userTopics.phone != null and userTopics.phone != ''"> |
| | | and bu.phone like concat('%',#{userTopics.phone},'%') |
| | | </if> |
| | | <if test="userTopics.userId != null ">and jut.user_id = #{userTopics.userId}</if> |
| | | <if test="userTopics.topicsId != null ">and jut.topics_id = #{userTopics.topicsId}</if> |
| | | <if test="userTopics.createTime != null ">and jut.create_time = #{userTopics.createTime}</if> |
| | | <if test="userTopics.updateTime != null ">and jut.update_time = #{userTopics.updateTime}</if> |
| | | <if test="userTopics.deleteFlag != null ">and jut.delete_flag = #{userTopics.deleteFlag}</if> |
| | | <if test="userTopics.articleId != null ">and jut.article_id = #{userTopics.articleId} |
| | | GROUP BY jut.article_id, jut.signature_path, |
| | | and jut.delete_flag = 0 |
| | | GROUP BY jut.article_id, jut.signature_path,jut.create_time,jut.id,jut.delete_flag, |
| | | bu.avatar, |
| | | bu.`name`, |
| | | bu.phone, |