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