Home > Back-end >  Please have the
Please have the

Time:09-15


/* *
* new
* interface: & lt; Qdpay. Activity. The activity. The location. Add>
* @ throws the Exception
*/
Public String addLocationActivity (String data, String sessionid) throws the Exception {
Tf_session session=our SessionManager. GetInstance () getSession (sessionid);
JSONObject dataMap=JSONObject. ParseObject (data);

Long smallactivityid=dataMap. GetLongValue (" smallactivityid ");
If (smallactivityid & lt;=0) {
Return new RetStruct (9798, "the activity id can't be empty"). The toString ();
}

If (activitylocationService select_count (smallactivityid) & gt; 0 {
Return new RetStruct (9798, "the current active location restrictions existing"). The toString ();
}

DataMap. Put (" createdby, "session. GetStaffid ());
DataMap. Put (" createdbyname, "session. GetStaffname ());
ActivitylocationService. Insert (dataMap);
Return new RetStruct (" new "success," data ", dataMap). The toString ();
}

CodePudding user response:

What is wrong, cut a figure
  • Related