parent
719f87c487
commit
9cb8c4832e
6 changed files with 62 additions and 30 deletions
@ -1,14 +1,18 @@ |
||||
package org.yzh.web.util; |
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.yzh.web.service.SendCommandService; |
||||
|
||||
public class SendCommandUtil { |
||||
|
||||
private static SendCommandService sendCommandService; |
||||
|
||||
@Autowired |
||||
public void setService(SendCommandService sendCommandService) { |
||||
SendCommandUtil.sendCommandService = sendCommandService; |
||||
public static SendCommandService getService() { |
||||
return sendCommandService; |
||||
} |
||||
|
||||
public static void setService(SendCommandService sendCommandService) { |
||||
if (SendCommandUtil.sendCommandService == null) { |
||||
SendCommandUtil.sendCommandService = sendCommandService; |
||||
} |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue