|
|
|
@ -176,11 +176,18 @@ public class YpController extends Controller {
|
|
|
|
|
* @param tel
|
|
|
|
|
*/
|
|
|
|
|
@Before(POST.class)
|
|
|
|
|
@EmptyInterface({"name", "xb", "sfzh", "address", "father_name", "mother_name", "tel", "uuid"})
|
|
|
|
|
public void save(int task_id, String name, String xb, int bx_id, String address, String father_name, String mother_name, String sfzh, String tel, String uuid) {
|
|
|
|
|
@EmptyInterface({"code", "name", "xb", "sfzh", "address", "father_name", "mother_name", "tel", "uuid"})
|
|
|
|
|
public void save(String code, int task_id, String name, String xb, int bx_id, String address, String father_name, String mother_name, String sfzh, String tel, String uuid) {
|
|
|
|
|
Kv kv = Kv.create();
|
|
|
|
|
boolean r = validateCaptcha(code);
|
|
|
|
|
if (!r) {
|
|
|
|
|
kv.set("success", false);
|
|
|
|
|
kv.set("message", "验证码错误!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int result = model.save(task_id, name, xb, bx_id, address, father_name, mother_name, sfzh, tel, uuid);
|
|
|
|
|
|
|
|
|
|
Kv kv = Kv.create();
|
|
|
|
|
|
|
|
|
|
if (result == 1) {
|
|
|
|
|
kv.set("success", true);
|
|
|
|
|
kv.set("message", "保存成功!");
|
|
|
|
|