From 29ab7773efe351a879ce9b3c29ab3ca50f4e62cb Mon Sep 17 00:00:00 2001 From: xiejun <xiejun@vci-tech.com> Date: 星期三, 15 一月 2025 21:36:08 +0800 Subject: [PATCH] 产品型号集成,类型转换,人员组织加日志,申请接口引用码段值校验 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseAttrMapper.java | 162 +++++++++++------------------------------------------ 1 files changed, 35 insertions(+), 127 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseAttrMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseAttrMapper.java index 9fdc6c8..070604d 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseAttrMapper.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodePhaseAttrMapper.java @@ -1,141 +1,49 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 搴勯獮 (smallchill@163.com) + */ package com.vci.ubcs.code.mapper; -import com.vci.starter.web.pagemodel.PageHelper; -import com.vci.starter.web.wrapper.VciQueryWrapperForDO; -import com.vci.ubcs.code.entity.CodePhaseAttrDO; -import com.vci.web.pageModel.BatchCBO; +import com.vci.ubcs.code.entity.CodePhaseAttr; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; -import java.util.Collection; import java.util.List; -import java.util.Map; /** - * 闃舵鐨勫睘鎬ф暟鎹搷浣滃眰 + * 缂栫爜搴撳畾涔�-妯℃澘闃舵-灞炴�� Mapper 鎺ュ彛 * - * @author weidy - * @date 2022-01-24 + * @author yuxc + * @since 2023-04-20 */ -public interface CodePhaseAttrMapper { +public interface CodePhaseAttrMapper extends BaseMapper<CodePhaseAttr> { /** - * 浣跨敤涓婚敭鍒犻櫎 - * @param oid 鏁版嵁涓婚敭 - * @return 鎵ц缁撴灉 - */ - BatchCBO deleteByPrimaryKey(String oid); - - /** - * 娣诲姞鏁版嵁 - * @param record 闃舵鐨勫睘鎬ф暟鎹璞� - * @return 鎵ц缁撴灉 - */ - BatchCBO insert(CodePhaseAttrDO record); - - /** - * 鎵归噺娣诲姞鏁版嵁 - * @param records 闃舵鐨勫睘鎬ф暟鎹璞¢泦鍚� - * @return 鎵ц缁撴灉鏁� - */ - BatchCBO batchInsert(List<CodePhaseAttrDO> records); - - /** - * 鏍规嵁涓婚敭鏌ヨ - * @param oid 鏁版嵁涓婚敭 - * @return 鏁版嵁瀵硅薄 - */ - CodePhaseAttrDO selectByPrimaryKey(String oid); - - /** - * 鏍规嵁涓婚敭鎵归噺鑾峰彇瀵硅薄 - * @param oids 涓婚敭锛屽寘鍚崟寮曞彿,浣嗘槸涓嶈兘瓒呰繃1000 - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodePhaseAttrDO> selectByPrimaryKeys(String oids); - - /** - * 鏍规嵁涓婚敭鎵归噺鏌ヨ瀵硅薄 - * @param oids 瀵硅薄涓婚敭,浣跨敤閫楀彿鍒嗛殧锛屼絾鏄笉鑳借秴杩�1000 - * @return 涓氬姟瀵硅薄 - */ - List<CodePhaseAttrDO> selectByPrimaryKeyCollection(Collection<String> oids); - - /** - * 鏌ヨ鎵�鏈夊垎绫� - * @return 鏌ヨ缁撴灉 - */ - List<CodePhaseAttrDO> selectAll(); - - /** - * 鏇存柊瀵硅薄 - * @param record 闃舵鐨勫睘鎬ф暟鎹璞� - * @return 鎵ц缁撴灉 - */ - BatchCBO updateByPrimaryKey(CodePhaseAttrDO record); - - /** - * 鎵归噺鏇存柊 - * @param records 闃舵鐨勫睘鎬ф暟鎹璞¢泦鍚� - * @return 鎵ц缁撴灉琛屾暟 - */ - BatchCBO batchUpdate(List<CodePhaseAttrDO> records); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏌ヨ鏁版嵁 - * @param conditionMap 鏌ヨ鏉′欢锛� - * @param pageHelper 鍖呮嫭鍒嗛〉锛屾帓搴� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodePhaseAttrDO> selectByCondition(Map<String,String> conditionMap, PageHelper pageHelper); - - /** - * 鏍规嵁鏌ヨ鏉′欢鏉ユ煡璇㈡�绘暟 - * @param conditionMap 鏌ヨ鏉′欢 - * @return 鎬绘暟 - */ - Long countByCondition(Map<String,String> conditionMap); - - /** - * 浣跨敤鏌ヨ灏佽鍣ㄦ潵鏌ヨ - * @param queryWrapper 鏌ヨ灏佽鍣� - * @return 鏁版嵁瀵硅薄鍒楄〃 - */ - List<CodePhaseAttrDO> selectByWrapper(VciQueryWrapperForDO queryWrapper); - - /** - * 鏍规嵁鏌ヨ灏佽鍣ㄦ潵鏌ヨ鎬绘暟 - * @param queryWrapper 鏌ヨ灏佽鍣� - * @return 鎬绘暟 - */ - Long countByWrapper(VciQueryWrapperForDO queryWrapper); - - /** - * 鏍规嵁涓婚敭鑾峰彇鍚嶇О - * @param oid 涓婚敭 - * @return 涓枃鍚嶇О - */ - String selectNameByOid(String oid); - - - /** - * 鎵归噺淇敼鐢熷懡鍛ㄦ湡鐨勭姸鎬� - * @param oids 涓婚敭闆嗗悎锛屼笉鑳藉ぇ浜�1000 - * @param lcStatus 鐢熷懡鍛ㄦ湡鐨勫�� - * @return 鎵ц鐨勭粨鏋� + * 鑷畾涔夊垎椤� + * + * @param page + * @param CodePhaseattr + * @return */ - long batchUpdateLcStatus(Collection<String> oids, String lcStatus); - /** - * 鏍规嵁涓婚敭鏇存柊鐘舵�� - * @param oid 涓婚敭 - * @param lcStatus 鐢熷懡鍛ㄦ湡鐘舵�� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - int updateLcStatus( String oid, String lcStatus); + List<CodePhaseAttrVO> selectCodePhaseattrPage(IPage page, CodePhaseAttrVO CodePhaseattr); - /** - * 鎵归噺鍒犻櫎瀵硅薄 - * @param oids 瀵硅薄鐨勪富閿泦鍚� - * @return 鍙楀奖鍝嶇殑琛屾暟 - */ - BatchCBO batchDeleteByOids(Collection<String> oids); + List<CodePhaseAttr> selectByPhasea(String oid); + + List<CodePhaseAttr> selectByPhaseaIds(String oids); + + List<CodePhaseAttr> listLinkAttrDOByTemplateAttrDOS(String id, String codeClassifyTemplateOid); } -- Gitblit v1.9.3