main
黄海 1 year ago
parent 03e4d1c2a1
commit 2c4862523b

@ -16,6 +16,7 @@ import com.jfinal.plugin.activerecord.Record;
import java.io.File;
import java.net.URISyntaxException;
import java.sql.Date;
import java.util.List;
public class ZjcqController extends Controller {
@ -40,7 +41,7 @@ public class ZjcqController extends Controller {
*/
@Before({POST.class})
@IsLoginInterface({})
public void createYs(String ys_name, String ys_date) {
public void createYs(String ys_name, Date ys_date) {
zm.createYs(ys_name, ys_date);
Kv kv = Kv.create();
kv.set("success", true);

@ -4,6 +4,7 @@ import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import java.sql.Date;
import java.util.List;
@ -50,7 +51,7 @@ public class ZjcqModel {
* @param ys_date
* @return ID
*/
public int createYs(String ys_name, String ys_date) {
public int createYs(String ys_name, Date ys_date) {
Record record = new Record();
record.set("ys_name", ys_name);
record.set("ys_date", ys_date);

Loading…
Cancel
Save