添加工作经历-添加查询条件
This commit is contained in:
@@ -36,6 +36,9 @@ public class AppUserWorkExperiencesController extends BaseController {
|
|||||||
@ApiOperation("工作经历列表信息")
|
@ApiOperation("工作经历列表信息")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(UserWorkExperiences userWorkExperiences){
|
public TableDataInfo list(UserWorkExperiences userWorkExperiences){
|
||||||
|
if(userWorkExperiences.getUserId()==null){
|
||||||
|
userWorkExperiences.setUserId(SiteSecurityUtils.getUserId());
|
||||||
|
}
|
||||||
startPage();
|
startPage();
|
||||||
List<UserWorkExperiences> list=userWorkExperiencesService.getWorkExperiencesList(userWorkExperiences);
|
List<UserWorkExperiences> list=userWorkExperiencesService.getWorkExperiencesList(userWorkExperiences);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@@ -57,7 +60,9 @@ public class AppUserWorkExperiencesController extends BaseController {
|
|||||||
@ApiOperation("新增工作经历")
|
@ApiOperation("新增工作经历")
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
public AjaxResult add(@RequestBody UserWorkExperiences userWorkExperiences){
|
public AjaxResult add(@RequestBody UserWorkExperiences userWorkExperiences){
|
||||||
|
if(userWorkExperiences.getUserId()==null){
|
||||||
userWorkExperiences.setUserId(SiteSecurityUtils.getUserId());
|
userWorkExperiences.setUserId(SiteSecurityUtils.getUserId());
|
||||||
|
}
|
||||||
return toAjax(userWorkExperiencesService.insertWorkExperiences(userWorkExperiences));
|
return toAjax(userWorkExperiencesService.insertWorkExperiences(userWorkExperiences));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||||
<if test="position != null and position != ''"> and position = #{position}</if>
|
<if test="position != null and position != ''"> and position = #{position}</if>
|
||||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||||
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user