[JAVA] SMS integrated design

First, the demand for systems integration

1, on-site inspection tasks, each patrol work orders have start and end times, when the patrol task timeout that the current time has exceeded the inspection work orders expected end time, this time should be to send an SMS alert to patrol officers manner, inform that a certain article or work order has not been completed within the specified time, and urge them to complete the task as soon as possible inspection.
Business logic: a timed task, the patrol management, the time has come to end, the state is to be patrol and inspection work order being determined as overtime work orders, work orders to send text messages to remind members.
2, on-site inspection tasks, for some reason a tour of a line, or a line patrol inspection point can not be normal patrol, patrol officers do not need to record and tour entry without inspection reason, at this time should be reminded to send a text message will not patrol the relevant information to inform the leadership of the station.
Business logic: do not perform work order operations, and fill out the reason, send an SMS to a work order specified superiors.

Second, the integrated design

SMS sending program:
1, configured through the platform item, get SMS templates, the content of the message text embedded message template;
2, through personnel management, access to the phone number of the person information;
3, SMS text and phone number, via SMS platform (http://192.168.XXX.XXX:XXX/services/Sms/) perform SMS operations.

Third, interface design

1, class SmsServiceStub extends org.apache.axis2.client.Stub rewrite which sendMessage method
Here Insert Picture Description
2, insertDownSms call the SMS platform to send text messages
Here Insert Picture Description

Published 14 original articles · won praise 1 · views 241

Guess you like

Origin blog.csdn.net/qq_39938236/article/details/104494582