Commit 280a9852 by mobh Committed by chenzg

消息记录处理

parent 7d9c6b46
...@@ -821,7 +821,7 @@ public class LoginController { ...@@ -821,7 +821,7 @@ public class LoginController {
} }
YgglMainEmp userInfo = ygglMainEmpMapper.selectOne(new QueryWrapper<YgglMainEmp>().lambda() YgglMainEmp userInfo = ygglMainEmpMapper.selectOne(new QueryWrapper<YgglMainEmp>().lambda()
.select(YgglMainEmp::getName, YgglMainEmp::getPhone, YgglMainEmp::getBmgwId) .select(YgglMainEmp::getEmpNum, YgglMainEmp::getName, YgglMainEmp::getPhone, YgglMainEmp::getBmgwId, YgglMainEmp::getOrgCode)
.eq(YgglMainEmp::getEmpNum, qyzxEmpLogin1.getId()) .eq(YgglMainEmp::getEmpNum, qyzxEmpLogin1.getId())
.eq(YgglMainEmp::getOrgCode, qyzxEmpLogin1.getOrgId())); .eq(YgglMainEmp::getOrgCode, qyzxEmpLogin1.getOrgId()));
if (userInfo == null) { if (userInfo == null) {
......
...@@ -6,6 +6,7 @@ import javax.annotation.Resource; ...@@ -6,6 +6,7 @@ import javax.annotation.Resource;
import javax.transaction.Transactional; import javax.transaction.Transactional;
import cn.timer.api.dao.admin.AdminAssoTxjlbMapper; import cn.timer.api.dao.admin.AdminAssoTxjlbMapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
...@@ -66,7 +67,9 @@ public class AdminAssoTxjlbcontroller { ...@@ -66,7 +67,9 @@ public class AdminAssoTxjlbcontroller {
@ApiOperation(value = "未读记录标记已读", httpMethod = "GET", notes = "接口发布说明") @ApiOperation(value = "未读记录标记已读", httpMethod = "GET", notes = "接口发布说明")
public Result<Object> recordmodification(@CurrentUser UserBean userBean, @PathVariable Integer id) { public Result<Object> recordmodification(@CurrentUser UserBean userBean, @PathVariable Integer id) {
AdminAssoTxjlb.builder().id(id).build() AdminAssoTxjlb.builder().id(id).build()
.update(new QueryWrapper<AdminAssoTxjlb>().lambda().eq(AdminAssoTxjlb::getTxstate, 1)); .update(new UpdateWrapper<AdminAssoTxjlb>().lambda().set(AdminAssoTxjlb::getTxstate, 1)
.eq(AdminAssoTxjlb::getId, id)
);
return ResultUtil.success("修改成功"); return ResultUtil.success("修改成功");
} }
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
<if test="param.txstate != null"> <if test="param.txstate != null">
and txjlb.txstate = #{param.txstate} and txjlb.txstate = #{param.txstate}
</if> </if>
<if test="param.empNum != null">
and txjlb.emp_num = #{param.empNum}
</if>
<if test="param.orgCode != null"> <if test="param.orgCode != null">
and txjlb.org_code = #{param.orgCode} and txjlb.org_code = #{param.orgCode}
</if> </if>
......
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