| | |
| | | import com.fgkj.services.Batttestdata_infService;
|
| | | import com.opensymphony.xwork2.ActionSupport;
|
| | |
|
| | | public class Batttestdata_infAction extends ActionSupport{
|
| | | public class Batttestdata_infAction extends ActionUtil{
|
| | | private Batttestdata_inf bti;
|
| | | private Batt_Maint_Dealarm bmd;
|
| | | private ServiceModel model;
|
| | |
| | | * 根据电池组id查询电池组的inf表中的放电信息 <!------ 跨域访问 --------->
|
| | | */
|
| | | public String searchBattTestInfDataById_ky(){
|
| | | ActionUtil.isAllowHeaders();
|
| | | Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
|
| | | model=service.serchByCondition_ky(bti);
|
| | | isAllowHeaders();
|
| | | if(key != null && CROSS_DOMAIN_KEY.equals(key)){
|
| | | Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
|
| | | model=service.serchByCondition_ky(bti); |
| | | }else{
|
| | | model = new ServiceModel();
|
| | | model.setCode(0);
|
| | | model.setMsg("识别码错误");
|
| | | }
|
| | | result=ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|