| | |
| | | import com.fgkj.services.Batttestdata_infService;
|
| | | import com.opensymphony.xwork2.ActionSupport;
|
| | |
|
| | | public class BatttestdataAction extends ActionSupport {
|
| | | public class BatttestdataAction extends ActionUtil{
|
| | | private BatttestdataService service = new BatttestdataService();
|
| | | private String result;
|
| | | private Batttestdata btd;
|
| | |
| | | * @return
|
| | | */
|
| | | public String findhistory_ky(){
|
| | | ActionUtil.isAllowHeaders();
|
| | | isAllowHeaders();
|
| | | ServiceModel model = new ServiceModel();
|
| | | if(key !=null && CROSS_DOMAIN_KEY.equals(key)){ |
| | | Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class);
|
| | | //System.out.println(btd);
|
| | | ServiceModel model = service.serchByCondition_ky(btd);
|
| | | model = service.serchByCondition_ky(btd);
|
| | | }else{
|
| | | model.setCode(0);
|
| | | model.setMsg("识别码错误");
|
| | | }
|
| | | result = ActionUtil.tojson(model);
|
| | | //System.out.println("*************************");
|
| | | return SUCCESS;
|