作者 王勇

对配置的各个关联的名称,进行了填充

正在显示 20 个修改的文件 包含 252 行增加24 行删除
1 package com.sunyo.wlpt.message.bus.service.controller; 1 package com.sunyo.wlpt.message.bus.service.controller;
2 2
3 3
4 -import com.sunyo.wlpt.message.bus.service.domain.BusExchange;  
5 -import com.sunyo.wlpt.message.bus.service.domain.BusServer;  
6 -import com.sunyo.wlpt.message.bus.service.domain.VirtualHost; 4 +import com.sunyo.wlpt.message.bus.service.domain.*;
7 import com.sunyo.wlpt.message.bus.service.response.ResultJson; 5 import com.sunyo.wlpt.message.bus.service.response.ResultJson;
8 -import com.sunyo.wlpt.message.bus.service.service.BusExchangeService;  
9 -import com.sunyo.wlpt.message.bus.service.service.BusServerService;  
10 -import com.sunyo.wlpt.message.bus.service.service.VirtualHostService; 6 +import com.sunyo.wlpt.message.bus.service.service.*;
11 import org.springframework.web.bind.annotation.*; 7 import org.springframework.web.bind.annotation.*;
12 8
13 import javax.annotation.Resource; 9 import javax.annotation.Resource;
@@ -31,6 +27,12 @@ public class CascadeController { @@ -31,6 +27,12 @@ public class CascadeController {
31 @Resource 27 @Resource
32 private BusExchangeService busExchangeService; 28 private BusExchangeService busExchangeService;
33 29
  30 + @Resource
  31 + private BusQueueService busQueueService;
  32 +
  33 + @Resource
  34 + private RoutingKeyService routingKeyService;
  35 +
34 /** 36 /**
35 * 仅,查询服务器列表 37 * 仅,查询服务器列表
36 * 38 *
@@ -53,15 +55,20 @@ public class CascadeController { @@ -53,15 +55,20 @@ public class CascadeController {
53 return result; 55 return result;
54 } 56 }
55 57
  58 +
56 /** 59 /**
57 * 仅,查询虚拟主机列表 60 * 仅,查询虚拟主机列表
58 * 61 *
  62 + * @param serverId 所属服务器ID
59 * @return {@link ResultJson} 63 * @return {@link ResultJson}
60 */ 64 */
61 @GetMapping("/host") 65 @GetMapping("/host")
62 - public ResultJson getVirtualHostList() { 66 + public ResultJson getVirtualHostList(@RequestParam(value = "serverId", required = false) String serverId) {
63 ResultJson result = new ResultJson(); 67 ResultJson result = new ResultJson();
64 - List<VirtualHost> virtualHosts = virtualHostService.getVirtualHostList(); 68 + VirtualHost virtualHost = new VirtualHost();
  69 + // 获取参数,所属服务器ID
  70 + virtualHost.setServerId(serverId);
  71 + List<VirtualHost> virtualHosts = virtualHostService.getVirtualHostList(virtualHost);
65 int num = virtualHosts.size(); 72 int num = virtualHosts.size();
66 if (num > 0) { 73 if (num > 0) {
67 result.setCode("200"); 74 result.setCode("200");
@@ -74,9 +81,18 @@ public class CascadeController { @@ -74,9 +81,18 @@ public class CascadeController {
74 return result; 81 return result;
75 } 82 }
76 83
  84 + /**
  85 + * 仅查询交换机的列表
  86 + *
  87 + * @param virtualHostId 所属虚拟主机的ID
  88 + * @return
  89 + */
77 @GetMapping("/exchange") 90 @GetMapping("/exchange")
78 - public ResultJson getExchangeList() {  
79 - List<BusExchange> busExchanges = busExchangeService.getExchangeList(); 91 + public ResultJson getExchangeList(@RequestParam(value = "virtualHostId", required = false) String virtualHostId) {
  92 + BusExchange busExchange = new BusExchange();
  93 + // 获取参数,所属虚拟主机ID
  94 + busExchange.setVirtualHostId(virtualHostId);
  95 + List<BusExchange> busExchanges = busExchangeService.getExchangeList(busExchange);
80 int num = busExchanges.size(); 96 int num = busExchanges.size();
81 if (num > 0) { 97 if (num > 0) {
82 return new ResultJson("200", "查询交换机列表,成功", busExchanges); 98 return new ResultJson("200", "查询交换机列表,成功", busExchanges);
@@ -86,6 +102,48 @@ public class CascadeController { @@ -86,6 +102,48 @@ public class CascadeController {
86 } 102 }
87 103
88 /** 104 /**
  105 + * 仅,查询队列列表
  106 + *
  107 + * @param virtualHostId 所属虚拟主机ID
  108 + * @return {@link ResultJson}
  109 + */
  110 + @GetMapping("/queue")
  111 + public ResultJson getQueueList(@RequestParam(value = "virtualHostId", required = false) String virtualHostId) {
  112 + BusQueue busQueue = new BusQueue();
  113 + // 获取参数,所属虚拟主机ID
  114 + busQueue.setVirtualHostId(virtualHostId);
  115 + List<BusQueue> busQueues = busQueueService.getQueueList(busQueue);
  116 + int num = busQueues.size();
  117 + if (num > 0) {
  118 + return new ResultJson("200", "查询队列列表,成功", busQueues);
  119 + } else {
  120 + return new ResultJson("500", "查询队列列表,失败");
  121 + }
  122 + }
  123 +
  124 + /**
  125 + * 仅,查询路由键列表
  126 + *
  127 + * @param exchangeId 所属交换机ID
  128 + * @return {@link ResultJson}
  129 + */
  130 + @GetMapping("/routing")
  131 + public ResultJson getRoutingKeyList(@RequestParam(value = "exchangeId", required = false) String exchangeId) {
  132 + RoutingKey routingKey = new RoutingKey();
  133 + // 获取参数,交换机ID
  134 + routingKey.setExchangeId(exchangeId);
  135 + List<RoutingKey> routingKeys = routingKeyService.getRoutingKeyList(routingKey);
  136 + int num = routingKeys.size();
  137 + if (num > 0) {
  138 + return new ResultJson("200", "查询路由键列表,成功", routingKeys);
  139 + } else {
  140 + return new ResultJson("500", "查询路由键列表,失败");
  141 + }
  142 +
  143 + }
  144 +
  145 +
  146 + /**
89 * 服务器与虚拟主机是1:n的关系 147 * 服务器与虚拟主机是1:n的关系
90 * 查询,服务器列表(包含虚拟机) 148 * 查询,服务器列表(包含虚拟机)
91 * 149 *
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat; @@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
4 import com.github.pagehelper.PageInfo; 4 import com.github.pagehelper.PageInfo;
5 import com.sunyo.wlpt.message.bus.service.domain.MessageNote; 5 import com.sunyo.wlpt.message.bus.service.domain.MessageNote;
6 import com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete; 6 import com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete;
7 -import com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding;  
8 import com.sunyo.wlpt.message.bus.service.response.ResultJson; 7 import com.sunyo.wlpt.message.bus.service.response.ResultJson;
9 import com.sunyo.wlpt.message.bus.service.service.MessageNoteService; 8 import com.sunyo.wlpt.message.bus.service.service.MessageNoteService;
10 import com.sunyo.wlpt.message.bus.service.service.SchedulingDeleteService; 9 import com.sunyo.wlpt.message.bus.service.service.SchedulingDeleteService;
@@ -2,10 +2,9 @@ package com.sunyo.wlpt.message.bus.service.controller; @@ -2,10 +2,9 @@ package com.sunyo.wlpt.message.bus.service.controller;
2 2
3 3
4 import com.github.pagehelper.PageInfo; 4 import com.github.pagehelper.PageInfo;
5 -import com.sunyo.wlpt.message.bus.service.domain.BusQueue;  
6 -import com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding; 5 +import com.sunyo.wlpt.message.bus.service.domain.*;
7 import com.sunyo.wlpt.message.bus.service.response.ResultJson; 6 import com.sunyo.wlpt.message.bus.service.response.ResultJson;
8 -import com.sunyo.wlpt.message.bus.service.service.UserMessageBindingService; 7 +import com.sunyo.wlpt.message.bus.service.service.*;
9 import com.sunyo.wlpt.message.bus.service.utils.IdUtils; 8 import com.sunyo.wlpt.message.bus.service.utils.IdUtils;
10 import org.springframework.web.bind.annotation.*; 9 import org.springframework.web.bind.annotation.*;
11 10
@@ -23,6 +22,20 @@ import javax.annotation.Resource; @@ -23,6 +22,20 @@ import javax.annotation.Resource;
23 public class UserMessageBindingController { 22 public class UserMessageBindingController {
24 23
25 @Resource 24 @Resource
  25 + private BusServerService busServerService;
  26 +
  27 + @Resource
  28 + private VirtualHostService virtualHostService;
  29 +
  30 + @Resource
  31 + private BusExchangeService busExchangeService;
  32 +
  33 + @Resource
  34 + private BusQueueService busQueueService;
  35 +
  36 + @Resource
  37 + private RoutingKeyService routingKeyService;
  38 + @Resource
26 private UserMessageBindingService userMessageBindingService; 39 private UserMessageBindingService userMessageBindingService;
27 40
28 /** 41 /**
@@ -130,7 +143,7 @@ public class UserMessageBindingController { @@ -130,7 +143,7 @@ public class UserMessageBindingController {
130 @PutMapping("/update") 143 @PutMapping("/update")
131 public ResultJson updateUserMessageBinding(@RequestBody UserMessageBinding userMessageBinding) { 144 public ResultJson updateUserMessageBinding(@RequestBody UserMessageBinding userMessageBinding) {
132 ResultJson result = new ResultJson<>(); 145 ResultJson result = new ResultJson<>();
133 - int num = userMessageBindingService.updateByPrimaryKeySelective(userMessageBinding); 146 + int num = userMessageBindingService.updateByPrimaryKeySelective(fillName(userMessageBinding));
134 if (num > 0) { 147 if (num > 0) {
135 result.setCode("200"); 148 result.setCode("200");
136 result.setMsg("编辑-账户消息配置-信息,成功"); 149 result.setMsg("编辑-账户消息配置-信息,成功");
@@ -152,7 +165,7 @@ public class UserMessageBindingController { @@ -152,7 +165,7 @@ public class UserMessageBindingController {
152 ResultJson result = new ResultJson<>(); 165 ResultJson result = new ResultJson<>();
153 // 设置id 166 // 设置id
154 userMessageBinding.setId(IdUtils.generateId()); 167 userMessageBinding.setId(IdUtils.generateId());
155 - int num = userMessageBindingService.insertSelective(userMessageBinding); 168 + int num = userMessageBindingService.insertSelective(fillName(userMessageBinding));
156 if (num > 0) { 169 if (num > 0) {
157 result.setCode("200"); 170 result.setCode("200");
158 result.setMsg("添加-账户消息配置-信息,成功"); 171 result.setMsg("添加-账户消息配置-信息,成功");
@@ -163,4 +176,31 @@ public class UserMessageBindingController { @@ -163,4 +176,31 @@ public class UserMessageBindingController {
163 return result; 176 return result;
164 } 177 }
165 178
  179 + /**
  180 + * 编辑 or 新增方法,根绝前端传递来的id值,来填充对应的name
  181 + * 服务器id,虚拟主机id,交换机id,队列id,路由键id
  182 + */
  183 + public UserMessageBinding fillName(UserMessageBinding userMessageBinding) {
  184 + // 填充,服务器名称
  185 + BusServer busServer = busServerService.selectByPrimaryKey(userMessageBinding.getServerId());
  186 + userMessageBinding.setServerName(busServer.getServerName());
  187 +
  188 + // 填充,虚拟主机名称
  189 + VirtualHost virtualHost = virtualHostService.selectByPrimaryKey(userMessageBinding.getVirtualHostId());
  190 + userMessageBinding.setVirtualHostName(virtualHost.getVirtualHostName());
  191 +
  192 + // 填充,交换机名称
  193 + BusExchange busExchange = busExchangeService.selectByPrimaryKey(userMessageBinding.getExchangeId());
  194 + userMessageBinding.setExchangeName(busExchange.getExchangeName());
  195 +
  196 + // 填充,队列名称
  197 + BusQueue busQueue = busQueueService.selectByPrimaryKey(userMessageBinding.getQueueId());
  198 + userMessageBinding.setQueueName(busQueue.getQueueName());
  199 +
  200 + // 填充,路由键名称
  201 + RoutingKey routingKey = routingKeyService.selectByPrimaryKey(userMessageBinding.getRoutingKeyId());
  202 + userMessageBinding.setRoutingKeyName(routingKey.getRoutingKeyName());
  203 +
  204 + return userMessageBinding;
  205 + }
166 } 206 }
@@ -80,7 +80,8 @@ public interface BusExchangeMapper { @@ -80,7 +80,8 @@ public interface BusExchangeMapper {
80 /** 80 /**
81 * 仅,查询交换机列表 81 * 仅,查询交换机列表
82 * 82 *
  83 + * @param busExchange {@link BusExchange}
83 * @return List<BusExchange> 84 * @return List<BusExchange>
84 */ 85 */
85 - List<BusExchange> getExchangeList(); 86 + List<BusExchange> getExchangeList(BusExchange busExchange);
86 } 87 }
@@ -76,4 +76,12 @@ public interface BusQueueMapper { @@ -76,4 +76,12 @@ public interface BusQueueMapper {
76 * @return List<BusQueue> 76 * @return List<BusQueue>
77 */ 77 */
78 List<BusQueue> validateBusQueue(BusQueue busQueue); 78 List<BusQueue> validateBusQueue(BusQueue busQueue);
  79 +
  80 + /**
  81 + * 仅,查询队列列表
  82 + *
  83 + * @param busQueue {@link BusQueue}
  84 + * @return
  85 + */
  86 + List<BusQueue> getQueueList(BusQueue busQueue);
79 } 87 }
@@ -76,4 +76,12 @@ public interface RoutingKeyMapper { @@ -76,4 +76,12 @@ public interface RoutingKeyMapper {
76 * @return List<RoutingKey> 76 * @return List<RoutingKey>
77 */ 77 */
78 List<RoutingKey> validateRoutingKey(RoutingKey routingKey); 78 List<RoutingKey> validateRoutingKey(RoutingKey routingKey);
  79 +
  80 + /**
  81 + * 仅,查询路由键列表
  82 + *
  83 + * @param routingKey 路由键 {@link RoutingKey}
  84 + * @return List<RoutingKey>
  85 + */
  86 + List<RoutingKey> getRoutingKeyList(RoutingKey routingKey);
79 } 87 }
@@ -80,7 +80,8 @@ public interface VirtualHostMapper { @@ -80,7 +80,8 @@ public interface VirtualHostMapper {
80 /** 80 /**
81 * 查询虚拟主机列表 81 * 查询虚拟主机列表
82 * 82 *
  83 + * @param virtualHost {@link VirtualHost}
83 * @return 虚拟主机列表 84 * @return 虚拟主机列表
84 */ 85 */
85 - List<VirtualHost> getVirtualHostList(); 86 + List<VirtualHost> getVirtualHostList(VirtualHost virtualHost);
86 } 87 }
@@ -83,7 +83,8 @@ public interface BusExchangeService { @@ -83,7 +83,8 @@ public interface BusExchangeService {
83 /** 83 /**
84 * 仅,查询交换机列表 84 * 仅,查询交换机列表
85 * 85 *
  86 + * @param busExchange {@link BusExchange}
86 * @return List<BusExchange> 87 * @return List<BusExchange>
87 */ 88 */
88 - List<BusExchange> getExchangeList(); 89 + List<BusExchange> getExchangeList(BusExchange busExchange);
89 } 90 }
@@ -77,4 +77,12 @@ public interface BusQueueService { @@ -77,4 +77,12 @@ public interface BusQueueService {
77 * @return List<BusQueue> 77 * @return List<BusQueue>
78 */ 78 */
79 List<BusQueue> validateBusQueue(BusQueue busQueue); 79 List<BusQueue> validateBusQueue(BusQueue busQueue);
  80 +
  81 + /**
  82 + * 仅,查询队列列表
  83 + *
  84 + * @param busQueue {@link BusQueue}
  85 + * @return
  86 + */
  87 + List<BusQueue> getQueueList(BusQueue busQueue);
80 } 88 }
@@ -78,4 +78,12 @@ public interface RoutingKeyService { @@ -78,4 +78,12 @@ public interface RoutingKeyService {
78 * @return List<RoutingKey> 78 * @return List<RoutingKey>
79 */ 79 */
80 List<RoutingKey> validateRoutingKey(RoutingKey routingKey); 80 List<RoutingKey> validateRoutingKey(RoutingKey routingKey);
  81 +
  82 + /**
  83 + * 仅,查询路由键列表
  84 + *
  85 + * @param routingKey 路由键 {@link RoutingKey}
  86 + * @return List<RoutingKey>
  87 + */
  88 + List<RoutingKey> getRoutingKeyList(RoutingKey routingKey);
81 } 89 }
@@ -82,7 +82,8 @@ public interface VirtualHostService { @@ -82,7 +82,8 @@ public interface VirtualHostService {
82 /** 82 /**
83 * 查询虚拟主机列表 83 * 查询虚拟主机列表
84 * 84 *
  85 + * @param virtualHost {@link VirtualHost}
85 * @return 虚拟主机列表 86 * @return 虚拟主机列表
86 */ 87 */
87 - List<VirtualHost> getVirtualHostList(); 88 + List<VirtualHost> getVirtualHostList(VirtualHost virtualHost);
88 } 89 }
@@ -94,8 +94,8 @@ public class BusExchangeServiceImpl implements BusExchangeService { @@ -94,8 +94,8 @@ public class BusExchangeServiceImpl implements BusExchangeService {
94 } 94 }
95 95
96 @Override 96 @Override
97 - public List<BusExchange> getExchangeList() {  
98 - return busExchangeMapper.getExchangeList(); 97 + public List<BusExchange> getExchangeList(BusExchange busExchange) {
  98 + return busExchangeMapper.getExchangeList(busExchange);
99 } 99 }
100 100
101 } 101 }
@@ -94,4 +94,9 @@ public class BusQueueServiceImpl implements BusQueueService { @@ -94,4 +94,9 @@ public class BusQueueServiceImpl implements BusQueueService {
94 return busQueueMapper.validateBusQueue(busQueue); 94 return busQueueMapper.validateBusQueue(busQueue);
95 } 95 }
96 96
  97 + @Override
  98 + public List<BusQueue> getQueueList(BusQueue busQueue) {
  99 + return busQueueMapper.getQueueList(busQueue);
  100 + }
  101 +
97 } 102 }
@@ -94,4 +94,9 @@ public class RoutingKeyServiceImpl implements RoutingKeyService { @@ -94,4 +94,9 @@ public class RoutingKeyServiceImpl implements RoutingKeyService {
94 return routingKeyMapper.validateRoutingKey(routingKey); 94 return routingKeyMapper.validateRoutingKey(routingKey);
95 } 95 }
96 96
  97 + @Override
  98 + public List<RoutingKey> getRoutingKeyList(RoutingKey routingKey) {
  99 + return routingKeyMapper.getRoutingKeyList(routingKey);
  100 + }
  101 +
97 } 102 }
@@ -96,8 +96,8 @@ public class VirtualHostServiceImpl implements VirtualHostService { @@ -96,8 +96,8 @@ public class VirtualHostServiceImpl implements VirtualHostService {
96 } 96 }
97 97
98 @Override 98 @Override
99 - public List<VirtualHost> getVirtualHostList() {  
100 - return virtualHostMapper.getVirtualHostList(); 99 + public List<VirtualHost> getVirtualHostList(VirtualHost virtualHost) {
  100 + return virtualHostMapper.getVirtualHostList(virtualHost);
101 } 101 }
102 102
103 } 103 }
  1 +package com.sunyo.wlpt.message.bus.service.vo;
  2 +
  3 +import com.sunyo.wlpt.message.bus.service.domain.*;
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * @author 子诚
  12 + * Description:UserMessageBinding的一个继承类,进行聚合
  13 + * 时间:2020/7/14 17:33
  14 + */
  15 +@Data
  16 +@AllArgsConstructor
  17 +@NoArgsConstructor
  18 +public class UserMessageBindingVO extends UserMessageBinding implements Serializable {
  19 +
  20 + private static final long serialVersionUID = 5417123427960404665L;
  21 +
  22 + /**
  23 + * 一条配置记录,对应一个服务器
  24 + */
  25 + private BusServer busServer;
  26 +
  27 + /**
  28 + * 一条配置记录,对应一个虚拟主机
  29 + */
  30 + private VirtualHost virtualHost;
  31 +
  32 + /**
  33 + * 一条配置记录,对应一个交换机
  34 + */
  35 + private BusExchange busExchange;
  36 +
  37 + /**
  38 + * 一条配置记录,对应一个队列
  39 + */
  40 + private BusQueue busQueue;
  41 +
  42 + /**
  43 + * 一条配置记录,对应一个路由键
  44 + */
  45 + private RoutingKey routingKey;
  46 +}
@@ -77,6 +77,12 @@ @@ -77,6 +77,12 @@
77 select 77 select
78 <include refid="Base_Column_List"/> 78 <include refid="Base_Column_List"/>
79 from bus_exchange 79 from bus_exchange
  80 + <where>
  81 + <!-- 所属虚拟主机ID -->
  82 + <if test="virtualHostId != null and virtualHostId !=''">
  83 + virtual_host_id = #{virtualHostId,jdbcType=VARCHAR}
  84 + </if>
  85 + </where>
80 </select> 86 </select>
81 87
82 <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> 88 <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
@@ -67,6 +67,20 @@ @@ -67,6 +67,20 @@
67 </if> 67 </if>
68 </where> 68 </where>
69 </select> 69 </select>
  70 +
  71 + <!-- 仅,查询队列列表 -->
  72 + <select id="getQueueList" parameterType="com.sunyo.wlpt.message.bus.service.domain.BusQueue"
  73 + resultMap="BaseResultMap">
  74 + select
  75 + <include refid="Base_Column_List"/>
  76 + from bus_queue
  77 + <where>
  78 + <!-- 所属虚拟主机Id -->
  79 + <if test="virtualHostId != null and virtualHostId !=''">
  80 + virtual_host_id = #{virtualHostId,jdbcType=VARCHAR}
  81 + </if>
  82 + </where>
  83 + </select>
70 <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> 84 <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
71 <!--@mbg.generated--> 85 <!--@mbg.generated-->
72 delete from bus_queue 86 delete from bus_queue
@@ -66,6 +66,19 @@ @@ -66,6 +66,19 @@
66 </where> 66 </where>
67 </select> 67 </select>
68 68
  69 + <select id="getRoutingKeyList" parameterType="com.sunyo.wlpt.message.bus.service.domain.RoutingKey"
  70 + resultMap="BaseResultMap">
  71 + select
  72 + <include refid="Base_Column_List"/>
  73 + from routing_key
  74 + <where>
  75 + <!-- 所属交换机ID -->
  76 + <if test="exchangeId != null and exchangeId !=''">
  77 + exchange_id = #{exchangeId,jdbcType=VARCHAR}
  78 + </if>
  79 + </where>
  80 + </select>
  81 +
69 <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> 82 <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
70 <!--@mbg.generated--> 83 <!--@mbg.generated-->
71 delete from routing_key 84 delete from routing_key
@@ -88,6 +88,12 @@ @@ -88,6 +88,12 @@
88 select 88 select
89 <include refid="Base_Column_List"/> 89 <include refid="Base_Column_List"/>
90 from virtual_host 90 from virtual_host
  91 + <where>
  92 + <!-- 所属服务器ID -->
  93 + <if test="serverId != null and serverId !=''">
  94 + server_id = #{serverId,jdbcType=VARCHAR}
  95 + </if>
  96 + </where>
91 </select> 97 </select>
92 98
93 <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> 99 <delete id="deleteByPrimaryKey" parameterType="java.lang.String">