Commit 5f7af04157e561aab85284769af2a0388110fd51
1 parent
7bb1996c16
Exists in
master
and in
8 other branches
code update
Showing 2 changed files with 11 additions and 2 deletions
platform-data-api/src/main/java/com/lyms/platform/data/service/impl/SmsServiceImpl.java
View file @
5f7af04
| ... | ... | @@ -24,6 +24,7 @@ |
| 24 | 24 | import org.springframework.data.domain.Sort; |
| 25 | 25 | import org.springframework.stereotype.Service; |
| 26 | 26 | |
| 27 | +import javax.servlet.http.HttpServletResponse; | |
| 27 | 28 | import java.util.*; |
| 28 | 29 | |
| 29 | 30 | /** |
| ... | ... | @@ -2694,5 +2695,13 @@ |
| 2694 | 2695 | yunBookbuildingService.getBirthPatients(dateStr); |
| 2695 | 2696 | } |
| 2696 | 2697 | |
| 2698 | + | |
| 2699 | + public void productSms() | |
| 2700 | + { | |
| 2701 | + productTemplateSms(); | |
| 2702 | + productChanAmsSms(); | |
| 2703 | + productYunAmsSms(); | |
| 2704 | + productChildAmsSms(); | |
| 2705 | + } | |
| 2697 | 2706 | } |
platform-data-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
5f7af04
| ... | ... | @@ -15,14 +15,14 @@ |
| 15 | 15 | <!--<!– 要调用的bean –>--> |
| 16 | 16 | <!--<property name="targetObject" ref="startWorkJob"></property>--> |
| 17 | 17 | <!--<!– 要调用的Method –>--> |
| 18 | - <!--<property name="targetMethod" value="productTemplateSms"></property>--> | |
| 18 | + <!--<property name="targetMethod" value="productSms"></property>--> | |
| 19 | 19 | <!--<!– 是否并发,false表示 如果发生错误也不影响下一次的调用 –>--> |
| 20 | 20 | <!--<property name="concurrent" value="false"></property>--> |
| 21 | 21 | <!--</bean>--> |
| 22 | 22 | <!--<!– 配置一个触发器 –>--> |
| 23 | 23 | <!--<bean id="startWorkTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">--> |
| 24 | 24 | <!--<property name="jobDetail" ref="startWorkTask"></property>--> |
| 25 | - <!--<property name="cronExpression" value="0 * 18 * * ?"></property> <!–每天的下午1点的每分钟的0秒都执行一次–>--> | |
| 25 | + <!--<property name="cronExpression" value="0 46 15 * * ?"></property>--> | |
| 26 | 26 | <!--</bean>--> |
| 27 | 27 | |
| 28 | 28 | <!--<!– 总调度,用于启动定时器 –>--> |