改名:employess改为employees,包括类名,页面名,接口名,参数名
This commit is contained in:
parent
b7f86786ed
commit
a7f115b13b
|
|
@ -1,4 +1,4 @@
|
||||||
package com.nu.modules.EmployessInfo.api;
|
package com.nu.modules.EmployeesInfo.api;
|
||||||
|
|
||||||
import com.nu.entity.EmployeesApplyEntity;
|
import com.nu.entity.EmployeesApplyEntity;
|
||||||
import com.nu.entity.EmployeesOrgApiEntity;
|
import com.nu.entity.EmployeesOrgApiEntity;
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
package com.nu.modules.EmployessInfo.api;
|
package com.nu.modules.EmployeesInfo.api;
|
||||||
|
|
||||||
import cn.hutool.json.JSONObject;
|
import cn.hutool.json.JSONObject;
|
||||||
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface IEmployessAdvisioryInfoApi {
|
public interface IEmployeesAdvisioryInfoApi {
|
||||||
|
|
||||||
EmployeesAdvisoryInfoEntity insert(EmployeesAdvisoryInfoEntity eployeesAdvisoryInfoEntity);
|
EmployeesAdvisoryInfoEntity insert(EmployeesAdvisoryInfoEntity employeesAdvisoryInfoEntity);
|
||||||
|
|
||||||
int updateById(EmployeesAdvisoryInfoEntity eployeesAdvisoryInfoEntity);
|
int updateById(EmployeesAdvisoryInfoEntity employeesAdvisoryInfoEntity);
|
||||||
|
|
||||||
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId, String orgCode);
|
List<EmployeesAdvisoryInfoEntity> queryAuditInfo(String openId, String orgCode);
|
||||||
|
|
||||||
|
|
@ -9,15 +9,13 @@ import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
import com.nu.entity.SuppliersApplyEntity;
|
import com.nu.entity.SuppliersApplyEntity;
|
||||||
import com.nu.entity.SuppliersOrgAllEntity;
|
import com.nu.entity.SuppliersOrgAllEntity;
|
||||||
import com.nu.entity.SuppliersOrgEntity;
|
import com.nu.entity.SuppliersOrgEntity;
|
||||||
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersApply;
|
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersApply;
|
||||||
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersOrg;
|
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersOrg;
|
||||||
import com.nu.modules.bizSuppliers.mapper.NuBizSuppliersApplyMapper;
|
import com.nu.modules.bizSuppliers.mapper.NuBizSuppliersApplyMapper;
|
||||||
import com.nu.modules.bizSuppliers.mapper.NuBizSuppliersOrgMapper;
|
import com.nu.modules.bizSuppliers.mapper.NuBizSuppliersOrgMapper;
|
||||||
import com.nu.modules.bizSuppliers.service.INuBizSuppliersApplyService;
|
import com.nu.modules.bizSuppliers.service.INuBizSuppliersApplyService;
|
||||||
import com.nu.modules.bizSuppliers.service.INuBizSuppliersOrgService;
|
import com.nu.modules.bizSuppliers.service.INuBizSuppliersOrgService;
|
||||||
import com.nu.modules.orgapplyinfo.entity.OrgAllInfo;
|
|
||||||
import com.nu.modules.orgapplyinfo.entity.OrgAllInfoApiEntity;
|
|
||||||
import com.nu.modules.suppliers.ISuppliersApi;
|
import com.nu.modules.suppliers.ISuppliersApi;
|
||||||
import com.nu.utils.RabbitMQUtil;
|
import com.nu.utils.RabbitMQUtil;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
@ -43,7 +41,7 @@ public class NuBizSuppliersApplyServiceImpl extends ServiceImpl<NuBizSuppliersAp
|
||||||
private NuBizSuppliersOrgMapper nuBizSuppliersOrgMapper;
|
private NuBizSuppliersOrgMapper nuBizSuppliersOrgMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEmployessAdvisioryInfoApi employessAdvisioryInfoApi;
|
private IEmployeesAdvisioryInfoApi employeesAdvisioryInfoApi;
|
||||||
@Autowired
|
@Autowired
|
||||||
private INuBizSuppliersOrgService suppliersOrgService;
|
private INuBizSuppliersOrgService suppliersOrgService;
|
||||||
|
|
||||||
|
|
@ -77,7 +75,7 @@ public class NuBizSuppliersApplyServiceImpl extends ServiceImpl<NuBizSuppliersAp
|
||||||
EmployeesAdvisoryInfoEntity edEntity = new EmployeesAdvisoryInfoEntity();
|
EmployeesAdvisoryInfoEntity edEntity = new EmployeesAdvisoryInfoEntity();
|
||||||
edEntity.setOpenId(suppliersApplyEntity.getOpenId());
|
edEntity.setOpenId(suppliersApplyEntity.getOpenId());
|
||||||
edEntity.setIzGys("Y");
|
edEntity.setIzGys("Y");
|
||||||
employessAdvisioryInfoApi.updateByOpenId(edEntity);
|
employeesAdvisioryInfoApi.updateByOpenId(edEntity);
|
||||||
|
|
||||||
BeanUtils.copyProperties(nuBizSuppliersApply, suppliersApplyEntity);
|
BeanUtils.copyProperties(nuBizSuppliersApply, suppliersApplyEntity);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.nu.entity.EmployeesApplyEntity;
|
import com.nu.entity.EmployeesApplyEntity;
|
||||||
import com.nu.modules.EmployessInfo.api.EmployeesOrgLocalApi;
|
import com.nu.modules.EmployeesInfo.api.EmployeesOrgLocalApi;
|
||||||
import com.nu.entity.EmployeesOrgApiEntity;
|
import com.nu.entity.EmployeesOrgApiEntity;
|
||||||
import com.nu.modules.employees.entity.EmployeesOrg;
|
import com.nu.modules.employees.entity.EmployeesOrg;
|
||||||
import com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo;
|
import com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo;
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,13 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.nu.dto.EmployeesApplyMQDto;
|
import com.nu.dto.EmployeesApplyMQDto;
|
||||||
import com.nu.dto.EmployeesStatusMQDto;
|
import com.nu.dto.EmployeesStatusMQDto;
|
||||||
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
import com.nu.modules.employees.entity.EmployeesOrg;
|
import com.nu.modules.employees.entity.EmployeesOrg;
|
||||||
import com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo;
|
import com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo;
|
||||||
import com.nu.modules.employees.mapper.NuEmployeesAdvisoryInfoMapper;
|
import com.nu.modules.employees.mapper.NuEmployeesAdvisoryInfoMapper;
|
||||||
import com.nu.modules.employees.service.IEmployeesOrgService;
|
import com.nu.modules.employees.service.IEmployeesOrgService;
|
||||||
import com.nu.modules.employees.service.INuEmployeesAdvisoryInfoService;
|
import com.nu.modules.employees.service.INuEmployeesAdvisoryInfoService;
|
||||||
import com.nu.modules.orgapplyinfo.entity.OrgApplyInfo;
|
|
||||||
import com.nu.modules.weixin.utils.TemplateMessageSender;
|
import com.nu.modules.weixin.utils.TemplateMessageSender;
|
||||||
import com.nu.modules.weixin.utils.WechatMiniProgramUtils;
|
import com.nu.modules.weixin.utils.WechatMiniProgramUtils;
|
||||||
import com.nu.utils.RabbitMQUtil;
|
import com.nu.utils.RabbitMQUtil;
|
||||||
|
|
@ -41,7 +40,7 @@ import java.util.stream.Collectors;
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesAdvisoryInfoMapper, NuEmployeesAdvisoryInfo> implements INuEmployeesAdvisoryInfoService, IEmployessAdvisioryInfoApi {
|
public class NuEmployeesAdvisoryInfoServiceImpl extends ServiceImpl<NuEmployeesAdvisoryInfoMapper, NuEmployeesAdvisoryInfo> implements INuEmployeesAdvisoryInfoService, IEmployeesAdvisioryInfoApi {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseCommonService baseCommonService;
|
private BaseCommonService baseCommonService;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
import com.nu.entity.NuWxNoticeEntity;
|
import com.nu.entity.NuWxNoticeEntity;
|
||||||
import com.nu.entity.WxNoticeEntity;
|
import com.nu.entity.WxNoticeEntity;
|
||||||
import com.nu.enums.WxClientType;
|
import com.nu.enums.WxClientType;
|
||||||
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.modules.orgapplyinfo.api.IOrgApplyInfoApi;
|
import com.nu.modules.orgapplyinfo.api.IOrgApplyInfoApi;
|
||||||
import com.nu.modules.orgapplyinfo.entity.OrgAllInfo;
|
import com.nu.modules.orgapplyinfo.entity.OrgAllInfo;
|
||||||
import com.nu.modules.orgapplyinfo.entity.OrgAllInfoApiEntity;
|
import com.nu.modules.orgapplyinfo.entity.OrgAllInfoApiEntity;
|
||||||
|
|
@ -55,7 +55,7 @@ public class OrgApplyInfoServiceImpl extends ServiceImpl<OrgApplyInfoMapper, Org
|
||||||
private IWxNoticeApi wxNoticeApi;
|
private IWxNoticeApi wxNoticeApi;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEmployessAdvisioryInfoApi employessAdvisioryInfoApi;
|
private IEmployeesAdvisioryInfoApi employeesAdvisioryInfoApi;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public OrgApplyInfoApiEntity insert(OrgApplyInfoApiEntity orgApplyInfoApiEntity) {
|
public OrgApplyInfoApiEntity insert(OrgApplyInfoApiEntity orgApplyInfoApiEntity) {
|
||||||
|
|
@ -275,7 +275,7 @@ public class OrgApplyInfoServiceImpl extends ServiceImpl<OrgApplyInfoMapper, Org
|
||||||
EmployeesAdvisoryInfoEntity edEntity = new EmployeesAdvisoryInfoEntity();
|
EmployeesAdvisoryInfoEntity edEntity = new EmployeesAdvisoryInfoEntity();
|
||||||
edEntity.setOpenId(orgApplyInfo.getOpenId());
|
edEntity.setOpenId(orgApplyInfo.getOpenId());
|
||||||
edEntity.setIzJg("Y");
|
edEntity.setIzJg("Y");
|
||||||
employessAdvisioryInfoApi.updateByOpenId(edEntity);
|
employeesAdvisioryInfoApi.updateByOpenId(edEntity);
|
||||||
|
|
||||||
//发送小程序、微信通知
|
//发送小程序、微信通知
|
||||||
NuWxNoticeEntity nuWxNotice = new NuWxNoticeEntity();
|
NuWxNoticeEntity nuWxNotice = new NuWxNoticeEntity();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
package com.nu.modules.pad.api;
|
package com.nu.modules.pad.api;
|
||||||
|
|
||||||
import cn.hutool.json.JSONObject;
|
import cn.hutool.json.JSONObject;
|
||||||
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.modules.advisoryinfo.api.IAdvisoryInfoApi;
|
|
||||||
import com.nu.modules.advisoryinfo.entity.AdvisoryInfoEntity;
|
|
||||||
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.api.vo.Result;
|
||||||
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.GetMapping;
|
||||||
|
|
@ -18,7 +16,7 @@ public class PadLoginApi {
|
||||||
/* @Autowired
|
/* @Autowired
|
||||||
private IAdvisoryInfoApi advisoryInfoApi; */
|
private IAdvisoryInfoApi advisoryInfoApi; */
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEmployessAdvisioryInfoApi service;
|
private IEmployeesAdvisioryInfoApi service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据电话号获取信息
|
* 根据电话号获取信息
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
package com.nu.modules.wechat.employess.api;
|
package com.nu.modules.wechat.employees.api;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.nu.dto.EmployeesApplyMQDto;
|
import com.nu.dto.EmployeesApplyMQDto;
|
||||||
import com.nu.dto.SysUserMQDto;
|
|
||||||
import com.nu.entity.EmployeesApplyEntity;
|
import com.nu.entity.EmployeesApplyEntity;
|
||||||
import com.nu.modules.EmployessInfo.api.EmployeesOrgLocalApi;
|
import com.nu.modules.EmployeesInfo.api.EmployeesOrgLocalApi;
|
||||||
import com.nu.entity.EmployeesOrgApiEntity;
|
import com.nu.entity.EmployeesOrgApiEntity;
|
||||||
import com.nu.modules.orgapplyinfo.api.IOrgApplyInfoApi;
|
import com.nu.modules.orgapplyinfo.api.IOrgApplyInfoApi;
|
||||||
import com.nu.modules.orgapplyinfo.entity.EmployeesApiEntity;
|
import com.nu.modules.orgapplyinfo.entity.EmployeesApiEntity;
|
||||||
|
|
@ -23,8 +22,8 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/employessapply")
|
@RequestMapping("/api/employeesapply")
|
||||||
public class EmployessApplyApi {
|
public class EmployeesApplyApi {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RabbitMQUtil rabbitMQUtil;
|
private RabbitMQUtil rabbitMQUtil;
|
||||||
|
|
@ -41,7 +40,7 @@ public class EmployessApplyApi {
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "员工申请-加入机构申请")
|
@AutoLog(value = "员工申请-加入机构申请")
|
||||||
@PostMapping("/apply")
|
@PostMapping("/apply")
|
||||||
public Result<Object> saveApiEmployess(@RequestBody EmployeesApplyEntity dto) {
|
public Result<Object> saveApiEmployees(@RequestBody EmployeesApplyEntity dto) {
|
||||||
if (StringUtils.isBlank(dto.getOrgCode())) {
|
if (StringUtils.isBlank(dto.getOrgCode())) {
|
||||||
return Result.error("申请失败");
|
return Result.error("申请失败");
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package com.nu.modules.wechat.employess.api;
|
package com.nu.modules.wechat.employees.api;
|
||||||
|
|
||||||
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.utils.NuRedisUtils;
|
import com.nu.utils.NuRedisUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
|
@ -12,11 +12,11 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/employessAdvisiory")
|
@RequestMapping("/api/employeesAdvisiory")
|
||||||
public class EmployessInfoApi {
|
public class EmployeesInfoApi {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEmployessAdvisioryInfoApi employessAdvisioryInfoApi;
|
private IEmployeesAdvisioryInfoApi employeesAdvisioryInfoApi;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -27,10 +27,10 @@ public class EmployessInfoApi {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "员工咨询信息-新增或修改")
|
@AutoLog(value = "员工咨询信息-新增或修改")
|
||||||
@PostMapping("/saveApiEmployess")
|
@PostMapping("/saveApiEmployees")
|
||||||
public Result<Object> saveApiEmployess(@RequestParam("ukey") String ukey, @RequestBody EmployeesAdvisoryInfoEntity EmployeesAdvisoryInfoEntity) {
|
public Result<Object> saveApiEmployees(@RequestParam("ukey") String ukey, @RequestBody EmployeesAdvisoryInfoEntity EmployeesAdvisoryInfoEntity) {
|
||||||
if (StringUtils.isNotBlank(EmployeesAdvisoryInfoEntity.getId())) {
|
if (StringUtils.isNotBlank(EmployeesAdvisoryInfoEntity.getId())) {
|
||||||
if(!employessAdvisioryInfoApi.validateChanged(EmployeesAdvisoryInfoEntity)){
|
if(!employeesAdvisioryInfoApi.validateChanged(EmployeesAdvisoryInfoEntity)){
|
||||||
return Result.ok("未做变更");
|
return Result.ok("未做变更");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -43,14 +43,14 @@ public class EmployessInfoApi {
|
||||||
// employeesAdvisoryInfoEntity.setOpenId(EmployeesAdvisoryInfoEntity.getOpenId());
|
// employeesAdvisoryInfoEntity.setOpenId(EmployeesAdvisoryInfoEntity.getOpenId());
|
||||||
// employeesAdvisoryInfoEntity.setAdvisoryType("2");
|
// employeesAdvisoryInfoEntity.setAdvisoryType("2");
|
||||||
// employeesAdvisoryInfoEntity.setIzYg("1");
|
// employeesAdvisoryInfoEntity.setIzYg("1");
|
||||||
// employessAdvisioryInfoApi.updateByOpenId(employeesAdvisoryInfoEntity);
|
// employeesAdvisioryInfoApi.updateByOpenId(employeesAdvisoryInfoEntity);
|
||||||
// }
|
// }
|
||||||
System.out.println("-----------新增/编辑员工入驻申请信息--------getId------------" + EmployeesAdvisoryInfoEntity.getId());
|
System.out.println("-----------新增/编辑员工入驻申请信息--------getId------------" + EmployeesAdvisoryInfoEntity.getId());
|
||||||
if (StringUtils.isNotBlank(EmployeesAdvisoryInfoEntity.getId())) {
|
if (StringUtils.isNotBlank(EmployeesAdvisoryInfoEntity.getId())) {
|
||||||
employessAdvisioryInfoApi.updateById(EmployeesAdvisoryInfoEntity);
|
employeesAdvisioryInfoApi.updateById(EmployeesAdvisoryInfoEntity);
|
||||||
return Result.ok("保存成功!");
|
return Result.ok("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
Result.ok(employessAdvisioryInfoApi.insert(EmployeesAdvisoryInfoEntity));
|
Result.ok(employeesAdvisioryInfoApi.insert(EmployeesAdvisoryInfoEntity));
|
||||||
return Result.ok("添加成功!");
|
return Result.ok("添加成功!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -61,12 +61,12 @@ public class EmployessInfoApi {
|
||||||
* @param openId
|
* @param openId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryApiEmployessInfo")
|
@GetMapping("/queryApiEmployeesInfo")
|
||||||
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployessInfo(@RequestParam("openId") String openId,
|
public Result<List<EmployeesAdvisoryInfoEntity>> queryApiEmployeesInfo(@RequestParam("openId") String openId,
|
||||||
@RequestParam(value = "orgCode", required = false) String orgCode) {
|
@RequestParam(value = "orgCode", required = false) String orgCode) {
|
||||||
if (StringUtils.isBlank(openId)) {
|
if (StringUtils.isBlank(openId)) {
|
||||||
return Result.error("手机号码错误");
|
return Result.error("手机号码错误");
|
||||||
}
|
}
|
||||||
return Result.ok(employessAdvisioryInfoApi.queryAuditInfo(openId, orgCode));
|
return Result.ok(employeesAdvisioryInfoApi.queryAuditInfo(openId, orgCode));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -204,12 +204,12 @@ public class ServiceTagController extends JeecgController<ServiceTag, IServiceTa
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping(value = "/getEmployessServiceTags")
|
@GetMapping(value = "/getEmployeesServiceTags")
|
||||||
public Result<List<ServiceTag>> getEmployessServiceTags(ServiceTag serviceTag) {
|
public Result<List<ServiceTag>> getEmployeesServiceTags(ServiceTag serviceTag) {
|
||||||
if(StringUtils.isEmpty(serviceTag.getEmployeesId())){
|
if(StringUtils.isEmpty(serviceTag.getEmployeesId())){
|
||||||
return Result.error("员工id不能为空");
|
return Result.error("员工id不能为空");
|
||||||
}
|
}
|
||||||
List<ServiceTag> pageList = serviceTagService.getEmployessServiceTags(serviceTag);
|
List<ServiceTag> pageList = serviceTagService.getEmployeesServiceTags(serviceTag);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,5 @@ public interface ServiceTagMapper extends BaseMapper<ServiceTag> {
|
||||||
|
|
||||||
IPage<ServiceTag> getEmployeesList(Page<ServiceTag> page, ServiceTag serviceTag);
|
IPage<ServiceTag> getEmployeesList(Page<ServiceTag> page, ServiceTag serviceTag);
|
||||||
|
|
||||||
List<ServiceTag> getEmployessServiceTags(ServiceTag serviceTag);
|
List<ServiceTag> getEmployeesServiceTags(ServiceTag serviceTag);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="getEmployessServiceTags" resultType="com.nu.modules.servicetag.entity.ServiceTag">
|
<select id="getEmployeesServiceTags" resultType="com.nu.modules.servicetag.entity.ServiceTag">
|
||||||
select a.id, b.tag_name, b.description, a.create_time, b.id as employeesTagsId
|
select a.id, b.tag_name, b.description, a.create_time, b.id as employeesTagsId
|
||||||
from nu_biz_employees_servcie_tags a
|
from nu_biz_employees_servcie_tags a
|
||||||
LEFT JOIN nu_service_tag b on a.tags_id = b.id
|
LEFT JOIN nu_service_tag b on a.tags_id = b.id
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,5 @@ public interface IServiceTagService extends IService<ServiceTag> {
|
||||||
|
|
||||||
IPage<ServiceTag> getEmployeesList(Page<ServiceTag> page, ServiceTag queryWrapper);
|
IPage<ServiceTag> getEmployeesList(Page<ServiceTag> page, ServiceTag queryWrapper);
|
||||||
|
|
||||||
List<ServiceTag> getEmployessServiceTags(ServiceTag serviceTag);
|
List<ServiceTag> getEmployeesServiceTags(ServiceTag serviceTag);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ public class ServiceTagServiceImpl extends ServiceImpl<ServiceTagMapper, Service
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ServiceTag> getEmployessServiceTags(ServiceTag serviceTag) {
|
public List<ServiceTag> getEmployeesServiceTags(ServiceTag serviceTag) {
|
||||||
return baseMapper.getEmployessServiceTags(serviceTag);
|
return baseMapper.getEmployeesServiceTags(serviceTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue