1.派遣单位,招聘,装备,车辆,枪支 修改绑定值为 deptId
2. 用户page接口修改,新增查询条件
| | |
| | | private String name; |
| | | |
| | | /** |
| | | * 保安公司 tenant_id |
| | | * 部门id |
| | | */ |
| | | @TableField("tenant_id") |
| | | private String tenantId; |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 联系人 |
| | |
| | | <!--派遣公司分页信息--> |
| | | <select id="selectDispatcherUnitPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.tenant_name tenantName |
| | | sdu.*,bt.dept_name tenantName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sdu.tenant_id = bt.tenant_id |
| | | sdu.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="dispatcherUnit.tenantName!=null and dispatcherUnit.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{dispatcherUnit.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{dispatcherUnit.tenantName},'%') |
| | | </if> |
| | | <if test="dispatcherUnit.name!=null and dispatcherUnit.name!=''"> |
| | | and sdu.name like concat('%', #{dispatcherUnit.name},'%') |
| | |
| | | <!--派遣公司详细信息--> |
| | | <select id="selectDispatcherUnitInfo" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.tenant_name tenantName |
| | | sdu.*,bt.dept_name tenantName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sdu.tenant_id = bt.tenant_id |
| | | WHERE |
| | | sdu.dept_id = bt.id |
| | | where |
| | | 1=1 |
| | | <if test="dispatcherUnit.id!=null"> |
| | | and sdu.id = #{dispatcherUnit.id} |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 保安单位id |
| | | * 部门id |
| | | */ |
| | | @TableField("tenant_id") |
| | | private String tenantId; |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 车牌号码 |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 保安单位id |
| | | * 部门id |
| | | */ |
| | | @TableField("tenant_id") |
| | | private String tenantId; |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 名称 |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 保安单位id |
| | | * 部门id |
| | | */ |
| | | @TableField("tenant_id") |
| | | private String tenantId; |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 公务用枪证编号 |
| | |
| | | <!--车辆分页信息--> |
| | | <select id="selectCarPage" resultType="org.springblade.modules.equipage.vo.CarVo"> |
| | | SELECT |
| | | sc.*,bt.tenant_name AS tenantName |
| | | sc.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_car sc |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sc.tenant_id = bt.tenant_id |
| | | sc.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="car.tenantName!=null and car.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{car.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{car.tenantName},'%') |
| | | </if> |
| | | <if test="car.carNumber!=null and car.carNumber!=''"> |
| | | and sc.car_number like concat('%', #{car.carNumber},'%') |
| | |
| | | <!--车辆详情信息--> |
| | | <select id="selectCarInfo" resultType="org.springblade.modules.equipage.vo.CarVo"> |
| | | SELECT |
| | | sc.*,bt.tenant_name AS tenantName |
| | | sc.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_car sc |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sc.tenant_id = bt.tenant_id |
| | | sc.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="car.id!=null"> |
| | |
| | | <!--车辆分页信息--> |
| | | <select id="selectEquipagePage" resultType="org.springblade.modules.equipage.vo.EquipageVo"> |
| | | SELECT |
| | | se.*,bt.tenant_name AS tenantName |
| | | se.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_equipage se |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | se.tenant_id = bt.tenant_id |
| | | se.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="equipage.tenantName!=null and equipage.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{equipage.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{equipage.tenantName},'%') |
| | | </if> |
| | | <if test="equipage.number!=null and equipage.number!=''"> |
| | | and se.number like concat('%', #{equipage.number},'%') |
| | |
| | | <!--车辆详情信息--> |
| | | <select id="selectEquipageInfo" resultType="org.springblade.modules.equipage.vo.EquipageVo"> |
| | | SELECT |
| | | se.*,bt.tenant_name AS tenantName |
| | | se.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_equipage se |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | se.tenant_id = bt.tenant_id |
| | | se.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="equipage.id!=null"> |
| | |
| | | <!--枪支分页信息--> |
| | | <select id="selectGunPage" resultType="org.springblade.modules.equipage.vo.GunVo"> |
| | | SELECT |
| | | sg.*,bt.tenant_name AS tenantName |
| | | sg.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_gun sg |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sg.tenant_id = bt.tenant_id |
| | | sg.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="gun.tenantName!=null and gun.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{gun.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{gun.tenantName},'%') |
| | | </if> |
| | | <if test="gun.gunCardNumber!=null and gun.gunCardNumber!=''"> |
| | | and sg.gun_card_number like concat('%', #{gun.gunCardNumber},'%') |
| | |
| | | <!--枪支详情信息--> |
| | | <select id="selectGunInfo" resultType="org.springblade.modules.equipage.vo.GunVo"> |
| | | SELECT |
| | | sg.*,bt.tenant_name AS tenantName |
| | | sg.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_gun sg |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sg.tenant_id = bt.tenant_id |
| | | sg.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="gun.id!=null"> |
| | |
| | | */ |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | |
| | | /** |
| | | * 岗位 |
| | | */ |
| | | @ApiModelProperty(value = "岗位") |
| | | private String post; |
| | | |
| | | /** |
| | | * 部门 |
| | | */ |
| | | @ApiModelProperty(value = "部门") |
| | | private String department; |
| | | |
| | | /** |
| | | * 岗位职责 |
| | | */ |
| | | @ApiModelProperty(value = "岗位职责") |
| | | private String responsibilities; |
| | | |
| | | /** |
| | | * 入职时间 |
| | | */ |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date entrytime; |
| | | |
| | | /** |
| | | * 离职时间 |
| | | */ |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date departuretime; |
| | | |
| | | /** |
| | | * 离职原因 |
| | | */ |
| | | @ApiModelProperty(value = "离职原因") |
| | | private String leaving; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty(value = "身份证号") |
| | | @TableField("cardId") |
| | | private String cardid; |
| | | |
| | | /** |
| | | * 公司名称 |
| | | */ |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 保安单位id |
| | | * 部门id |
| | | */ |
| | | @TableField("tenant_id") |
| | | private String tenantId; |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | /** |
| | | * 招聘岗位名称 |
| | |
| | | <!--招聘分页信息--> |
| | | <select id="selectRecruitmentPage" resultType="org.springblade.modules.recruitment.vo.RecruitmentVo"> |
| | | SELECT |
| | | sr.*,bt.tenant_name AS tenantName |
| | | sr.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_recruitment sr |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sr.tenant_id = bt.tenant_id |
| | | sr.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="recruitment.tenantName!=null and recruitment.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{recruitment.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{recruitment.tenantName},'%') |
| | | </if> |
| | | <if test="recruitment.province!=null"> |
| | | and sr.province = #{recruitment.province} |
| | |
| | | <!--招聘详情信息--> |
| | | <select id="selectRecruitmentInfo" resultType="org.springblade.modules.recruitment.vo.RecruitmentVo"> |
| | | SELECT |
| | | sr.*,bt.tenant_name AS tenantName |
| | | sr.*,bt.dept_name AS tenantName |
| | | FROM |
| | | sys_recruitment sr |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sr.tenant_id = bt.tenant_id |
| | | sr.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="recruitment.id!=null"> |
| | |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | </if> |
| | | <if test="user.deptId!=null and user.deptId != ''"> |
| | | and dept_id = #{user.deptId} |
| | | </if> |
| | | <if test="user.status!=null and user.status != ''"> |
| | | and status = #{user.status} |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and real_name like concat('%', #{user.realName},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |