Commit d3058fbb authored by huyuchen's avatar huyuchen

预派单 参数校验修改

parent 76070b6c
...@@ -125,8 +125,8 @@ public class TEmpChangeInfoController { ...@@ -125,8 +125,8 @@ public class TEmpChangeInfoController {
*/ */
@Operation(description = "分页查询") @Operation(description = "分页查询")
@GetMapping("/getAllDeptPage" ) @GetMapping("/getAllDeptPage" )
public R<IPage<TSettleDomain>> getItemNamePage(Page page,String deptName) { public R<IPage<TSettleDomain>> getItemNamePage(Page page,String departName) {
return new R<>(tEmpChangeInfoService.getAllDeptPage(page, deptName)); return new R<>(tEmpChangeInfoService.getAllDeptPage(page, departName));
} }
/** /**
......
...@@ -248,7 +248,9 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper, ...@@ -248,7 +248,9 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
private LambdaQueryWrapper buildQueryWrapper(String deptName) { private LambdaQueryWrapper buildQueryWrapper(String deptName) {
LambdaQueryWrapper<TSettleDomain> wrapper = Wrappers.lambdaQuery(); LambdaQueryWrapper<TSettleDomain> wrapper = Wrappers.lambdaQuery();
wrapper.likeRight(TSettleDomain::getDepartName,deptName); if (Common.isNotNull(deptName)) {
wrapper.likeRight(TSettleDomain::getDepartName, deptName);
}
wrapper.eq(TSettleDomain::getDeleteFlag, CommonConstants.ZERO_STRING); wrapper.eq(TSettleDomain::getDeleteFlag, CommonConstants.ZERO_STRING);
wrapper.eq(TSettleDomain::getStopFlag, CommonConstants.ZERO_STRING); wrapper.eq(TSettleDomain::getStopFlag, CommonConstants.ZERO_STRING);
return wrapper; return wrapper;
......
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