Commit c41ff68c authored by EDY's avatar EDY

优化

parent 325225c0
package com.ruoyi.web.controller.business;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
......@@ -78,7 +79,7 @@ public class BaseCustomFollowRecordController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody BaseCustomFollowRecord baseCustomFollowRecord)
{
baseCustomFollowRecord.setGjr(getUsername());
baseCustomFollowRecord.setGjr(getLoginUser().getUser().getNickName());
return toAjax(baseCustomFollowRecordService.insertBaseCustomFollowRecord(baseCustomFollowRecord));
}
......@@ -90,6 +91,8 @@ public class BaseCustomFollowRecordController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody BaseCustomFollowRecord baseCustomFollowRecord)
{
baseCustomFollowRecord.setUpdateTime(new Date());
baseCustomFollowRecord.setUpdateBy(getLoginUser().getUser().getNickName());
return toAjax(baseCustomFollowRecordService.updateBaseCustomFollowRecord(baseCustomFollowRecord));
}
......
......@@ -79,7 +79,7 @@ public class BaseCustomInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody BaseCustomInfo baseCustomInfo)
{
baseCustomInfo.setFzr(getUsername());
baseCustomInfo.setFzr(getLoginUser().getUser().getNickName());
baseCustomInfo.setCreateTime(new Date());
baseCustomInfo.setCreateBy(getUsername());
return toAjax(baseCustomInfoService.insertBaseCustomInfo(baseCustomInfo));
......@@ -93,6 +93,8 @@ public class BaseCustomInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody BaseCustomInfo baseCustomInfo)
{
baseCustomInfo.setUpdateTime(new Date());
baseCustomInfo.setUpdateBy(getLoginUser().getUser().getNickName());
return toAjax(baseCustomInfoService.updateBaseCustomInfo(baseCustomInfo));
}
......
......@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bz != null and bz != ''"> and bz = #{bz}</if>
<if test="deleteFlag != null "> and delete_flag = #{deleteFlag}</if>
</where>
order by id desc
</select>
<select id="selectBaseCustomFollowRecordById" parameterType="Long" resultMap="BaseCustomFollowRecordResult">
......
......@@ -82,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="rubbishFlag != null and rubbishFlag == 1"> and khzt = 7</if>
<if test="rubbishFlag != null and rubbishFlag == 0"> and khzt not in (7)</if>
</where>
order by id desc
</select>
<select id="selectBaseCustomInfoById" parameterType="Long" resultMap="BaseCustomInfoResult">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment