1、查询指令包临时代码(未完成)

2、供应商增加变更审核后的逻辑bug
This commit is contained in:
1378012178@qq.com 2026-01-28 09:20:09 +08:00
parent ae18951786
commit d4ce6e1ff6
6 changed files with 70 additions and 10 deletions

View File

@ -6,6 +6,7 @@ import com.nu.entity.*;
import com.nu.modules.config.IDirectiveConfigApi; import com.nu.modules.config.IDirectiveConfigApi;
import com.nu.modules.care.api.ICareDirectivePlanApi; import com.nu.modules.care.api.ICareDirectivePlanApi;
import com.nu.modules.order.api.IDirectiveOrderApi; import com.nu.modules.order.api.IDirectiveOrderApi;
import com.nu.modules.servicepackage.IDirectivePackageApi;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.compress.utils.Lists; import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -34,6 +35,8 @@ public class CareDirectiveApi {
private ICareDirectivePlanApi careDirectivePlanApi; private ICareDirectivePlanApi careDirectivePlanApi;
@Autowired @Autowired
private IDirectiveOrderApi directiveOrderApi; private IDirectiveOrderApi directiveOrderApi;
@Autowired
private IDirectivePackageApi directivePackageApi;
/** /**
* 获取护理类服务指令树-配置数据 * 获取护理类服务指令树-配置数据
@ -57,6 +60,19 @@ public class CareDirectiveApi {
return Result.OK(pageList); 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端保存长者标签 * PAD端保存长者标签
* *

View File

@ -53,4 +53,6 @@ public class CareDirectivePackageEntity implements Serializable {
// 服务指令集合 // 服务指令集合
private List<CareDirectiveEntity> directivesList; private List<CareDirectiveEntity> directivesList;
private String instructionTagId;
} }

View File

@ -27,6 +27,7 @@ public class SuppliersMQListener {
private INuConfigSuppliersApplyService nuConfigSuppliersApplyService; private INuConfigSuppliersApplyService nuConfigSuppliersApplyService;
@Autowired @Autowired
private IConfigSuppliersInfoService configSuppliersInfoService; private IConfigSuppliersInfoService configSuppliersInfoService;
/** /**
* 供应商-供应商申请合作 * 供应商-供应商申请合作
*/ */
@ -42,10 +43,10 @@ public class SuppliersMQListener {
public void applyStatus(SuppliersInfoMQDto suppliersInfoMQDto) { public void applyStatus(SuppliersInfoMQDto suppliersInfoMQDto) {
try { try {
QueryWrapper<NuConfigSuppliersApply> qw = new QueryWrapper<>(); QueryWrapper<NuConfigSuppliersApply> qw = new QueryWrapper<>();
qw.eq("suppliers_id",suppliersInfoMQDto.getSuppliersId()); qw.eq("suppliers_id", suppliersInfoMQDto.getSuppliersId());
NuConfigSuppliersApply upData = new NuConfigSuppliersApply(); NuConfigSuppliersApply upData = new NuConfigSuppliersApply();
upData.setIzHistory("Y"); upData.setIzHistory("Y");
nuConfigSuppliersApplyService.update(upData,qw); nuConfigSuppliersApplyService.update(upData, qw);
NuConfigSuppliersApply configSuppliersApply = new NuConfigSuppliersApply(); NuConfigSuppliersApply configSuppliersApply = new NuConfigSuppliersApply();
BeanUtils.copyProperties(suppliersInfoMQDto, configSuppliersApply); BeanUtils.copyProperties(suppliersInfoMQDto, configSuppliersApply);
@ -78,8 +79,8 @@ public class SuppliersMQListener {
NuConfigSuppliersApply applyUpdateData = new NuConfigSuppliersApply(); NuConfigSuppliersApply applyUpdateData = new NuConfigSuppliersApply();
applyUpdateData.setIzHistory("Y"); applyUpdateData.setIzHistory("Y");
UpdateWrapper<NuConfigSuppliersApply> uw = new UpdateWrapper<>(); UpdateWrapper<NuConfigSuppliersApply> uw = new UpdateWrapper<>();
uw.eq("suppliers_id",suppliersInfoMQDto.getSuppliersId()); uw.eq("suppliers_id", suppliersInfoMQDto.getSuppliersId());
nuConfigSuppliersApplyService.update(applyUpdateData,uw); nuConfigSuppliersApplyService.update(applyUpdateData, uw);
//插入信息变更审核数据 //插入信息变更审核数据
NuConfigSuppliersApply applyData = new NuConfigSuppliersApply(); NuConfigSuppliersApply applyData = new NuConfigSuppliersApply();
@ -136,6 +137,23 @@ public class SuppliersMQListener {
configSuppliersInfo.setOpeningBankNo(suppliersInfoMQDto.getOpeningBankNo());//开户行账号 configSuppliersInfo.setOpeningBankNo(suppliersInfoMQDto.getOpeningBankNo());//开户行账号
configSuppliersInfo.setImgPath(suppliersInfoMQDto.getImgPath());//资质照片 configSuppliersInfo.setImgPath(suppliersInfoMQDto.getImgPath());//资质照片
configSuppliersInfoService.updateById(configSuppliersInfo); 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("保存成功"); System.out.println("保存成功");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -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);
}

View File

@ -152,10 +152,12 @@
(SELECT * FROM nu_config_directive_package (SELECT * FROM nu_config_directive_package
<where> <where>
del_flag = '0' del_flag = '0'
and id in <if test="ids != null and ids != ''">
<foreach collection="ids" item="item" open="(" separator="," close=")"> and id in
#{item.id} <foreach collection="ids" item="item" open="(" separator="," close=")">
</foreach> #{item.id}
</foreach>
</if>
<if test="directivePackage.instructionTagId != null and directivePackage.instructionTagId != '' "> <if test="directivePackage.instructionTagId != null and directivePackage.instructionTagId != '' ">
and instruction_tag_id = #{directivePackage.instructionTagId} and instruction_tag_id = #{directivePackage.instructionTagId}
</if> </if>

View File

@ -1,11 +1,15 @@
package com.nu.modules.config.directivepackage.service.impl; 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.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.collect.Lists; 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.entity.DirectivePackage;
import com.nu.modules.config.directivepackage.mapper.DirectivePackageMapper; import com.nu.modules.config.directivepackage.mapper.DirectivePackageMapper;
import com.nu.modules.config.directivepackage.service.IDirectivePackageService; 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 org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
@ -17,7 +21,7 @@ import java.util.List;
* @Version: V1.0 * @Version: V1.0
*/ */
@Service @Service
public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMapper, DirectivePackage> implements IDirectivePackageService { public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMapper, DirectivePackage> implements IDirectivePackageService, IDirectivePackageApi {
@Override @Override
public void saveDirectives(DirectivePackage directivePackage) { public void saveDirectives(DirectivePackage directivePackage) {
@ -35,7 +39,7 @@ public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMap
@Override @Override
public void queryList(DirectivePackage directivePackage, IPage<DirectivePackage> pageList) { 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); pageList.setRecords(record);
} }
@ -49,4 +53,11 @@ public class DirectivePackageServiceImpl extends ServiceImpl<DirectivePackageMap
return directivePackages.stream().findFirst().orElse(null); 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);
}
} }