Commit 6309fa26 authored by 周健威's avatar 周健威

修改代码

parent 4177a44e
......@@ -22,6 +22,10 @@ public class CustomForm implements Serializable {
public static final int STATUS_SUBMIT = 1;
public static final int STATUS_ORDER = 2;
public static final int TYPE_IMAGE = 1;
public static final int TYPE_INDUSTRY = 2;
public static final int TYPE_STORAGE = 3;
/**
*
*/
......
......@@ -50,6 +50,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
entity.setAreaName(datacenterFegin.queryByCode(entity.getAreaCode()).getData().getName());
}
entity.setUserId(getAppUser().getUserid());
entity.setType(CustomForm.TYPE_INDUSTRY);
baseBiz.insertSelective(entity);
return ObjectRestResponse.succ();
}
......@@ -66,6 +67,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
entity.setAreaName(datacenterFegin.queryByCode(entity.getAreaCode()).getData().getName());
}
entity.setUserId(getAppUser().getUserid());
entity.setType(CustomForm.TYPE_STORAGE);
baseBiz.insertSelective(entity);
return ObjectRestResponse.succ();
}
......@@ -82,6 +84,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
entity.setAreaName(datacenterFegin.queryByCode(entity.getAreaCode()).getData().getName());
}
entity.setUserId(getAppUser().getUserid());
entity.setType(CustomForm.TYPE_IMAGE);
baseBiz.insertSelective(entity);
return ObjectRestResponse.succ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment