Commit 6390bffd by 阳浪

我的留言

parent 70aaec19
...@@ -5,10 +5,7 @@ import com.yizhi.training.application.service.LeaveWordService; ...@@ -5,10 +5,7 @@ import com.yizhi.training.application.service.LeaveWordService;
import com.yizhi.training.application.vo.domain.LeaveWordParamVo; import com.yizhi.training.application.vo.domain.LeaveWordParamVo;
import com.yizhi.training.application.vo.domain.LeaveWordVo; import com.yizhi.training.application.vo.domain.LeaveWordVo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/** /**
* com.yizhi.training.application.controller * com.yizhi.training.application.controller
...@@ -24,27 +21,27 @@ public class LeaveWordController { ...@@ -24,27 +21,27 @@ public class LeaveWordController {
private LeaveWordService leaveWordService; private LeaveWordService leaveWordService;
@PostMapping("/page") @PostMapping("/page")
public Page<LeaveWordVo> page(LeaveWordParamVo paramVo){ public Page<LeaveWordVo> page(@RequestBody LeaveWordParamVo paramVo){
return leaveWordService.page(paramVo); return leaveWordService.page(paramVo);
} }
@PostMapping("/save") @PostMapping("/save")
public boolean save(LeaveWordVo leaveWordVo){ public boolean save(@RequestBody LeaveWordVo leaveWordVo){
return leaveWordService.save(leaveWordVo); return leaveWordService.save(leaveWordVo);
} }
@GetMapping("/getById") @GetMapping("/getById")
public LeaveWordVo getById(Long id){ public LeaveWordVo getById(@RequestParam("id") Long id){
return leaveWordService.getById(id); return leaveWordService.getById(id);
} }
@GetMapping("/updateState") @GetMapping("/updateState")
public boolean updateState(Long id,Integer state){ public boolean updateState(@RequestParam("id")Long id,@RequestParam("state")Integer state){
return leaveWordService.updateState(id,state); return leaveWordService.updateState(id,state);
} }
@GetMapping("/removeById") @GetMapping("/removeById")
public boolean removeById(Long id){ public boolean removeById(@RequestParam("id")Long id){
return leaveWordService.removeById(id); return leaveWordService.removeById(id);
} }
} }
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
aug.company_id as companyId aug.company_id as companyId
from from
cloud_system.authz_user_group aug cloud_system.authz_user_group aug
inner join cloud_system.authz_role_user_group arug on
aug.id = arug.user_group_id
inner join cloud_system.authz_account_role aar on
arug.role_id = aar.role_id
where where
aug.id in aug.id in
<foreach item="item" index="index" collection="groupIds" open="(" separator="," close=")"> <foreach item="item" index="index" collection="groupIds" open="(" separator="," close=")">
......
...@@ -49,13 +49,13 @@ public class LeaveWordServiceImpl extends ServiceImpl<LeaveWordMapper, LeaveWord ...@@ -49,13 +49,13 @@ public class LeaveWordServiceImpl extends ServiceImpl<LeaveWordMapper, LeaveWord
} }
if(ObjectUtil.isNotEmpty(paramVo.getBizType())){ if(ObjectUtil.isNotEmpty(paramVo.getBizType())){
map.eq("bizType", paramVo.getBizType()); map.eq("biz_type", paramVo.getBizType());
} }
if(ObjectUtil.isNotEmpty(paramVo.getCreateByName())){ if(ObjectUtil.isNotEmpty(paramVo.getCreateByName())){
map.like("createByName", paramVo.getCreateByName()); map.like("create_by_name", paramVo.getCreateByName());
} }
if(ObjectUtil.isNotEmpty(paramVo.getCreateById())){ if(ObjectUtil.isNotEmpty(paramVo.getCreateById())){
map.eq("createById", paramVo.getCreateById()); map.eq("create_by_id", paramVo.getCreateById());
} }
if(ObjectUtil.isNotEmpty(paramVo.getState())){ if(ObjectUtil.isNotEmpty(paramVo.getState())){
map.eq("state", paramVo.getState()); map.eq("state", paramVo.getState());
......
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