parent
ae18951786
commit
d4ce6e1ff6
|
|
@ -6,6 +6,7 @@ import com.nu.entity.*;
|
|||
import com.nu.modules.config.IDirectiveConfigApi;
|
||||
import com.nu.modules.care.api.ICareDirectivePlanApi;
|
||||
import com.nu.modules.order.api.IDirectiveOrderApi;
|
||||
import com.nu.modules.servicepackage.IDirectivePackageApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.compress.utils.Lists;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
|
@ -34,6 +35,8 @@ public class CareDirectiveApi {
|
|||
private ICareDirectivePlanApi careDirectivePlanApi;
|
||||
@Autowired
|
||||
private IDirectiveOrderApi directiveOrderApi;
|
||||
@Autowired
|
||||
private IDirectivePackageApi directivePackageApi;
|
||||
|
||||
/**
|
||||
* 获取护理类服务指令树-配置数据
|
||||
|
|
@ -57,6 +60,19 @@ public class CareDirectiveApi {
|
|||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指令包集合数据
|
||||
*
|
||||
* @param careDirectivePackageEntity
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getNcPackagelist1")
|
||||
public Result<List<CareDirectivePackageEntity>> getNcPackagelist(CareDirectivePackageEntity careDirectivePackageEntity) {
|
||||
careDirectivePackageEntity.seti
|
||||
List<CareDirectivePackageEntity> pageList = directivePackageApi.getNcPackagelist(careDirectivePackageEntity, null);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* PAD端保存长者标签
|
||||
*
|
||||
|
|
|
|||
|
|
@ -53,4 +53,6 @@ public class CareDirectivePackageEntity implements Serializable {
|
|||
// 服务指令集合
|
||||
private List<CareDirectiveEntity> directivesList;
|
||||
|
||||
private String instructionTagId;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ public class SuppliersMQListener {
|
|||
private INuConfigSuppliersApplyService nuConfigSuppliersApplyService;
|
||||
@Autowired
|
||||
private IConfigSuppliersInfoService configSuppliersInfoService;
|
||||
|
||||
/**
|
||||
* 供应商-供应商申请合作
|
||||
*/
|
||||
|
|
@ -42,10 +43,10 @@ public class SuppliersMQListener {
|
|||
public void applyStatus(SuppliersInfoMQDto suppliersInfoMQDto) {
|
||||
try {
|
||||
QueryWrapper<NuConfigSuppliersApply> qw = new QueryWrapper<>();
|
||||
qw.eq("suppliers_id",suppliersInfoMQDto.getSuppliersId());
|
||||
qw.eq("suppliers_id", suppliersInfoMQDto.getSuppliersId());
|
||||
NuConfigSuppliersApply upData = new NuConfigSuppliersApply();
|
||||
upData.setIzHistory("Y");
|
||||
nuConfigSuppliersApplyService.update(upData,qw);
|
||||
nuConfigSuppliersApplyService.update(upData, qw);
|
||||
|
||||
NuConfigSuppliersApply configSuppliersApply = new NuConfigSuppliersApply();
|
||||
BeanUtils.copyProperties(suppliersInfoMQDto, configSuppliersApply);
|
||||
|
|
@ -78,8 +79,8 @@ public class SuppliersMQListener {
|
|||
NuConfigSuppliersApply applyUpdateData = new NuConfigSuppliersApply();
|
||||
applyUpdateData.setIzHistory("Y");
|
||||
UpdateWrapper<NuConfigSuppliersApply> uw = new UpdateWrapper<>();
|
||||
uw.eq("suppliers_id",suppliersInfoMQDto.getSuppliersId());
|
||||
nuConfigSuppliersApplyService.update(applyUpdateData,uw);
|
||||
uw.eq("suppliers_id", suppliersInfoMQDto.getSuppliersId());
|
||||
nuConfigSuppliersApplyService.update(applyUpdateData, uw);
|
||||
|
||||
//插入信息变更审核数据
|
||||
NuConfigSuppliersApply applyData = new NuConfigSuppliersApply();
|
||||
|
|
@ -136,6 +137,23 @@ public class SuppliersMQListener {
|
|||
configSuppliersInfo.setOpeningBankNo(suppliersInfoMQDto.getOpeningBankNo());//开户行账号
|
||||
configSuppliersInfo.setImgPath(suppliersInfoMQDto.getImgPath());//资质照片
|
||||
configSuppliersInfoService.updateById(configSuppliersInfo);
|
||||
|
||||
QueryWrapper<NuConfigSuppliersApply> applyQW = new QueryWrapper<>();
|
||||
applyQW.eq("suppliers_id", suppliersInfoMQDto.getSuppliersId());
|
||||
applyQW.eq("iz_history", "N");
|
||||
NuConfigSuppliersApply applyOne = nuConfigSuppliersApplyService.getOne(applyQW);
|
||||
//供应商变更信息时,如果本机构处于入驻申请 需要把信息变为最新的
|
||||
if (applyOne != null && "1".equals(applyOne.getApplyStatus())) {
|
||||
applyOne.setSuppliersName(suppliersInfoMQDto.getSuppliersName());//供应商名称
|
||||
applyOne.setSuppliersNature(suppliersInfoMQDto.getSuppliersNature());//供应商性质
|
||||
applyOne.setSuppliersAddress(suppliersInfoMQDto.getSuppliersAddress());//供应商地址
|
||||
applyOne.setPersonInCharge(suppliersInfoMQDto.getPersonInCharge());//负责人
|
||||
applyOne.setContactNumber(suppliersInfoMQDto.getContactNumber());//联系电话
|
||||
applyOne.setOpeningBank(suppliersInfoMQDto.getOpeningBank());//开户行
|
||||
applyOne.setOpeningBankNo(suppliersInfoMQDto.getOpeningBankNo());//开户行账号
|
||||
applyOne.setImgPath(suppliersInfoMQDto.getImgPath());//资质照片
|
||||
nuConfigSuppliersApplyService.updateById(applyOne);
|
||||
}
|
||||
System.out.println("保存成功");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
package com.nu.modules.servicepackage;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.nu.entity.CareDirectivePackageEntity;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IDirectivePackageApi {
|
||||
public List<CareDirectivePackageEntity> getNcPackagelist(CareDirectivePackageEntity directivePackageEntity, IPage<CareDirectivePackageEntity> pageList);
|
||||
}
|
||||
|
|
@ -152,10 +152,12 @@
|
|||
(SELECT * FROM nu_config_directive_package
|
||||
<where>
|
||||
del_flag = '0'
|
||||
and id in
|
||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
<if test="ids != null and ids != ''">
|
||||
and id in
|
||||
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="directivePackage.instructionTagId != null and directivePackage.instructionTagId != '' ">
|
||||
and instruction_tag_id = #{directivePackage.instructionTagId}
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
package com.nu.modules.config.directivepackage.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.nu.entity.CareDirectivePackageEntity;
|
||||
import com.nu.modules.config.directivepackage.entity.DirectivePackage;
|
||||
import com.nu.modules.config.directivepackage.mapper.DirectivePackageMapper;
|
||||
import com.nu.modules.config.directivepackage.service.IDirectivePackageService;
|
||||
import com.nu.modules.servicepackage.IDirectivePackageApi;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -17,7 +21,7 @@ import java.util.List;
|
|||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMapper, DirectivePackage> implements IDirectivePackageService {
|
||||
public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMapper, DirectivePackage> implements IDirectivePackageService, IDirectivePackageApi {
|
||||
|
||||
@Override
|
||||
public void saveDirectives(DirectivePackage directivePackage) {
|
||||
|
|
@ -35,7 +39,7 @@ public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMap
|
|||
|
||||
@Override
|
||||
public void queryList(DirectivePackage directivePackage, IPage<DirectivePackage> pageList) {
|
||||
List<DirectivePackage> record = baseMapper.queryList(directivePackage,pageList.getRecords());
|
||||
List<DirectivePackage> record = baseMapper.queryList(directivePackage, pageList.getRecords());
|
||||
pageList.setRecords(record);
|
||||
}
|
||||
|
||||
|
|
@ -49,4 +53,11 @@ public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMap
|
|||
return directivePackages.stream().findFirst().orElse(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CareDirectivePackageEntity> getNcPackagelist(CareDirectivePackageEntity directivePackageEntity, IPage<CareDirectivePackageEntity> pageList) {
|
||||
DirectivePackage directivePackage = new DirectivePackage();
|
||||
BeanUtils.copyProperties(directivePackageEntity,directivePackage);
|
||||
List<DirectivePackage> record = baseMapper.queryList(directivePackage, null);
|
||||
return BeanUtil.copyToList(record, CareDirectivePackageEntity.class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue