diff --git a/src/main/java/com/zzjee/tmsv/controller/VYsddController.java b/src/main/java/com/zzjee/tmsv/controller/VYsddController.java new file mode 100644 index 00000000..6d1d3ffb --- /dev/null +++ b/src/main/java/com/zzjee/tmsv/controller/VYsddController.java @@ -0,0 +1,692 @@ +package com.zzjee.tmsv.controller; + +import com.alibaba.fastjson.JSONArray; +import com.zzjee.tmsv.entity.VYsddEntity; +import com.zzjee.tmsv.service.VYsddServiceI; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.apache.commons.lang3.StringUtils; +import org.apache.log4j.Logger; +import org.apache.poi.hssf.usermodel.*; +import org.apache.poi.ss.usermodel.*; +import org.jeecgframework.core.beanvalidator.BeanValidators; +import org.jeecgframework.core.common.controller.BaseController; +import org.jeecgframework.core.common.exception.BusinessException; +import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery; +import org.jeecgframework.core.common.model.json.AjaxJson; +import org.jeecgframework.core.common.model.json.DataGrid; +import org.jeecgframework.core.constant.Globals; +import org.jeecgframework.core.util.*; +import org.jeecgframework.jwt.util.ResponseMessage; +import org.jeecgframework.jwt.util.Result; +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; +import org.jeecgframework.tag.core.easyui.TagUtil; +import org.jeecgframework.web.system.service.SystemService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import org.springframework.web.util.UriComponentsBuilder; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.validation.ConstraintViolation; +import javax.validation.Validator; +import java.awt.image.BufferedImage; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.text.SimpleDateFormat; +import java.util.*; + +/** + * @Title: Controller + * @Description: v_ysdd + * @author onlineGenerator + * @date 2018-05-04 00:07:37 + * @version V1.0 + * + */ +@Controller +@RequestMapping("/vYsddController") +@Api(value="VYsdd",description="v_ysdd",tags="vYsddController") +public class VYsddController extends BaseController { + /** + * Logger for this class + */ + private static final Logger logger = Logger.getLogger(VYsddController.class); + + @Autowired + private VYsddServiceI vYsddService; + @Autowired + private SystemService systemService; + @Autowired + private Validator validator; + + + + /** + * v_ysdd列表 页面跳转 + * + * @return + */ + @RequestMapping(params = "list") + public ModelAndView list(HttpServletRequest request) { + return new ModelAndView("com/zzjee/tmsv/vYsddList"); + } + + /** + * easyui AJAX请求数据 + * + * @param request + * @param response + * @param dataGrid + * @param user + */ + + @RequestMapping(params = "datagrid") + public void datagrid(VYsddEntity vYsdd, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) { + CriteriaQuery cq = new CriteriaQuery(VYsddEntity.class, dataGrid); + //查询条件组装器 + org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vYsdd, request.getParameterMap()); + try{ + //自定义追加查询条件 + String query_createDate_begin = request.getParameter("createDate_begin"); + String query_createDate_end = request.getParameter("createDate_end"); + if(StringUtil.isNotEmpty(query_createDate_begin)) { + cq.ge("createDate", new SimpleDateFormat("yyyy-MM-dd").parse(query_createDate_begin)); + + }else{ + + SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); + Calendar c = Calendar.getInstance(); + System.out.println("当前日期:"+sf.format(c.getTime())); + c.add(Calendar.DAY_OF_MONTH, -1); +// System.out.println("增加一天后日期:"+sf.format(c.getTime())); + cq.ge("createDate", DateUtils.str2Date(sf.format(c.getTime()),DateUtils.date_sdf)); + } + if(StringUtil.isNotEmpty(query_createDate_end)){ + cq.le("createDate", new SimpleDateFormat("yyyy-MM-dd").parse(query_createDate_end)); + } + String query_sdsj_begin = request.getParameter("sdsj_begin"); + String query_sdsj_end = request.getParameter("sdsj_end"); + if(StringUtil.isNotEmpty(query_sdsj_begin)){ + cq.ge("sdsj", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(query_sdsj_begin)); + } + if(StringUtil.isNotEmpty(query_sdsj_end)){ + cq.le("sdsj", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(query_sdsj_end)); + } + }catch (Exception e) { + throw new BusinessException(e.getMessage()); + } + cq.add(); + this.vYsddService.getDataGridReturn(cq, true); + TagUtil.datagrid(response, dataGrid); + } + + /** + * 删除v_ysdd + * + * @return + */ + @RequestMapping(params = "doDel") + @ResponseBody + public AjaxJson doDel(VYsddEntity vYsdd, HttpServletRequest request) { + String message = null; + AjaxJson j = new AjaxJson(); + vYsdd = systemService.getEntity(VYsddEntity.class, vYsdd.getId()); + message = "v_ysdd删除成功"; + try{ + vYsddService.delete(vYsdd); + systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO); + }catch(Exception e){ + e.printStackTrace(); + message = "v_ysdd删除失败"; + throw new BusinessException(e.getMessage()); + } + j.setMsg(message); + return j; + } + + /** + * 批量删除v_ysdd + * + * @return + */ + @RequestMapping(params = "doBatchDel") + @ResponseBody + public AjaxJson doBatchDel(String ids, HttpServletRequest request){ + String message = null; + AjaxJson j = new AjaxJson(); + message = "v_ysdd删除成功"; + try{ + for(String id:ids.split(",")){ + VYsddEntity vYsdd = systemService.getEntity(VYsddEntity.class, + id + ); + vYsddService.delete(vYsdd); + systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO); + } + }catch(Exception e){ + e.printStackTrace(); + message = "v_ysdd删除失败"; + throw new BusinessException(e.getMessage()); + } + j.setMsg(message); + return j; + } + + + /** + * 添加v_ysdd + * + * @param ids + * @return + */ + @RequestMapping(params = "doAdd") + @ResponseBody + public AjaxJson doAdd(VYsddEntity vYsdd, HttpServletRequest request) { + String message = null; + AjaxJson j = new AjaxJson(); + message = "v_ysdd添加成功"; + try{ + vYsddService.save(vYsdd); + systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO); + }catch(Exception e){ + e.printStackTrace(); + message = "v_ysdd添加失败"; + throw new BusinessException(e.getMessage()); + } + j.setMsg(message); + return j; + } + + /** + * 更新v_ysdd + * + * @param ids + * @return + */ + @RequestMapping(params = "doUpdate") + @ResponseBody + public AjaxJson doUpdate(VYsddEntity vYsdd, HttpServletRequest request) { + String message = null; + AjaxJson j = new AjaxJson(); + message = "v_ysdd更新成功"; + VYsddEntity t = vYsddService.get(VYsddEntity.class, vYsdd.getId()); + try { + MyBeanUtils.copyBeanNotNull2Bean(vYsdd, t); + vYsddService.saveOrUpdate(t); + systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO); + } catch (Exception e) { + e.printStackTrace(); + message = "v_ysdd更新失败"; + throw new BusinessException(e.getMessage()); + } + j.setMsg(message); + return j; + } + + + /** + * v_ysdd新增页面跳转 + * + * @return + */ + @RequestMapping(params = "goAdd") + public ModelAndView goAdd(VYsddEntity vYsdd, HttpServletRequest req) { + if (StringUtil.isNotEmpty(vYsdd.getId())) { + vYsdd = vYsddService.getEntity(VYsddEntity.class, vYsdd.getId()); + req.setAttribute("vYsddPage", vYsdd); + } + return new ModelAndView("com/zzjee/tmsv/vYsdd-add"); + } + /** + * v_ysdd编辑页面跳转 + * + * @return + */ + @RequestMapping(params = "goUpdate") + public ModelAndView goUpdate(VYsddEntity vYsdd, HttpServletRequest req) { + if (StringUtil.isNotEmpty(vYsdd.getId())) { + vYsdd = vYsddService.getEntity(VYsddEntity.class, vYsdd.getId()); + req.setAttribute("vYsddPage", vYsdd); + } + return new ModelAndView("com/zzjee/tmsv/vYsdd-update"); + } + + /** + * 导入功能跳转 + * + * @return + */ + @RequestMapping(params = "upload") + public ModelAndView upload(HttpServletRequest req) { + req.setAttribute("controller_name","vYsddController"); + return new ModelAndView("common/upload/pub_excel_upload"); + } + + /** + * 导出excel + * + * @param request + * @param response + */ + @RequestMapping(params = "exportXls") + public void exportXls(VYsddEntity vYsdd, HttpServletRequest request, HttpServletResponse response + , DataGrid dataGrid, ModelMap modelMap) { + CriteriaQuery cq = new CriteriaQuery(VYsddEntity.class, dataGrid); + org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vYsdd, request.getParameterMap()); + + String query_createDate_begin = request.getParameterMap().get("createDate_begin")[0]; + if(StringUtil.isNotEmpty(query_createDate_begin)) { + SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); + Calendar c = Calendar.getInstance(); + System.out.println("当前日期:" + sf.format(c.getTime())); + c.add(Calendar.DAY_OF_MONTH, -1); +// System.out.println("增加一天后日期:"+sf.format(c.getTime())); + cq.ge("createDate", DateUtils.str2Date(sf.format(c.getTime()), DateUtils.date_sdf)); + } + List vYsdds = this.vYsddService.getListByCriteriaQuery(cq,false); + OutputStream fileOut = null; + BufferedImage bufferImg = null; + String codedFileName = null; + + // 先把读进来的图片放到一个ByteArrayOutputStream中,以便产生ByteArray + try { + codedFileName = java.net.URLEncoder.encode("中文", "UTF-8"); + response.setHeader("content-disposition", "attachment;filename=zhangdan.xls" + ); + HSSFWorkbook wb = new HSSFWorkbook(); + HSSFSheet sheet = wb.createSheet("zhangdan"); + ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream(); + + sheet.setMargin(HSSFSheet.TopMargin,0.1);// 页边距(上) + sheet.setMargin(HSSFSheet.BottomMargin,0.1);// 页边距(下) + sheet.setMargin(HSSFSheet.LeftMargin,0.1);// 页边距(左) + sheet.setMargin(HSSFSheet.RightMargin,0.05);// 页边距(右 + + sheet.setColumnWidth(0, 15 * 256); + sheet.setColumnWidth(1, 15 * 256); + sheet.setColumnWidth(2, 15 * 256); + sheet.setColumnWidth(3, 15 * 256); + sheet.setColumnWidth(4, 15 * 256); + sheet.setColumnWidth(5, 15 * 256); + sheet.setColumnWidth(6, 15 * 256); + sheet.setColumnWidth(7, 15 * 256); + sheet.setColumnWidth(8, 15 * 256); + sheet.setColumnWidth(9, 15 * 256); + sheet.setColumnWidth(10, 15 * 256); + sheet.setColumnWidth(11, 15 * 256); + sheet.setColumnWidth(12, 15 * 256); + sheet.setColumnWidth(13, 15 * 256); + sheet.setColumnWidth(14, 15 * 256); + sheet.setColumnWidth(15, 15 * 256); + sheet.setColumnWidth(16, 15 * 256); + sheet.setColumnWidth(17, 30 * 256); + sheet.setColumnWidth(18, 30 * 256); + sheet.setColumnWidth(19, 15 * 256); + + // 创建两种单元格格式 + CellStyle cs = wb.createCellStyle(); + CellStyle cs1 = wb.createCellStyle(); + CellStyle cs2 = wb.createCellStyle(); + CellStyle cs3 = wb.createCellStyle(); + CellStyle cs3r = wb.createCellStyle(); + // 创建两种字体 + Font f = wb.createFont(); + Font f2 = wb.createFont(); + Font f5 = wb.createFont(); + // 创建第一种字体样式(用于列名) + f.setFontHeightInPoints((short) 16); + f.setColor(IndexedColors.BLACK.getIndex()); + f.setBoldweight(Font.BOLDWEIGHT_BOLD); + + // 创建第二种字体样式(用于值) + f2.setFontHeightInPoints((short) 10); + f2.setColor(IndexedColors.BLACK.getIndex()); + f5.setFontHeightInPoints((short) 8); + f5.setColor(IndexedColors.BLACK.getIndex()); + + // 设置第一种单元格的样式(用于列名) + cs.setFont(f); + cs.setBorderLeft(CellStyle.BORDER_NONE); + cs.setBorderRight(CellStyle.BORDER_NONE); + cs.setBorderTop(CellStyle.BORDER_NONE); + cs.setBorderBottom(CellStyle.BORDER_NONE); + cs.setAlignment(HSSFCellStyle.ALIGN_RIGHT); + + cs1.setFont(f2); + cs1.setBorderLeft(CellStyle.BORDER_MEDIUM); + cs1.setBorderRight(CellStyle.BORDER_MEDIUM); + cs1.setBorderTop(CellStyle.BORDER_MEDIUM); + cs1.setBorderBottom(CellStyle.BORDER_MEDIUM); + cs1.setAlignment(HSSFCellStyle.ALIGN_CENTER); + + // 设置第二种单元格的样式(用于值) + cs2.setFont(f2); + cs2.setBorderLeft(CellStyle.BORDER_NONE); + cs2.setBorderRight(CellStyle.BORDER_NONE); + cs2.setBorderTop(CellStyle.BORDER_NONE); + cs2.setBorderBottom(CellStyle.BORDER_NONE); + cs2.setWrapText(true); + + // cs2.setAlignment(CellStyle.BORDER_NONE); + + cs3.setFont(f2); + cs3.setBorderLeft(CellStyle.BORDER_MEDIUM); + cs3.setBorderRight(CellStyle.BORDER_MEDIUM); + cs3.setBorderTop(CellStyle.BORDER_MEDIUM); + cs3.setBorderBottom(CellStyle.BORDER_MEDIUM); + cs3.setAlignment(HSSFCellStyle.ALIGN_LEFT); + cs3r.setFont(f2); + cs3r.setBorderLeft(CellStyle.BORDER_MEDIUM); + cs3r.setBorderRight(CellStyle.BORDER_MEDIUM); + cs3r.setBorderTop(CellStyle.BORDER_MEDIUM); + cs3r.setBorderBottom(CellStyle.BORDER_MEDIUM); + cs3r.setAlignment(HSSFCellStyle.ALIGN_RIGHT); +// String[] columnNames = { "送达时间","发货人","货物 ","件数","重量","体积","收货人地址","收货人","送货方式","收货人电话","代收款","运费","卸货费","总费用","车号","状态","回单备注" }; + String[] columnNames = { "送达时间","发货人","货物 ","件数","重量","体积","货号","收货人地址","收货人","送货方式","收货人电话","代收款","运费", "回单备注","车号","上午或下午" }; + + Row rowColumnName = sheet.createRow((short) 0); // 列名 + + int coli = 0; + for (int i = 0; i < columnNames.length; i++) { + + Cell cell = rowColumnName.createCell(coli); + coli++; + rowColumnName.setHeight((short) 300); + cell.setCellValue(columnNames[i]); + cell.setCellStyle(cs1); + + } + int rows = 1; + for(int j = 0;j fileMap = multipartRequest.getFileMap(); + for (Map.Entry entity : fileMap.entrySet()) { + MultipartFile file = entity.getValue();// 获取上传文件对象 + ImportParams params = new ImportParams(); + params.setTitleRows(2); + params.setHeadRows(1); + params.setNeedSave(true); + try { + List listVYsddEntitys = ExcelImportUtil.importExcel(file.getInputStream(),VYsddEntity.class,params); + for (VYsddEntity vYsdd : listVYsddEntitys) { + vYsddService.save(vYsdd); + } + j.setMsg("文件导入成功!"); + } catch (Exception e) { + j.setMsg("文件导入失败!"); + logger.error(ExceptionUtil.getExceptionMessage(e)); + }finally{ + try { + file.getInputStream().close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + return j; + } + + @RequestMapping(method = RequestMethod.GET) + @ResponseBody + @ApiOperation(value="v_ysdd列表信息",produces="application/json",httpMethod="GET") + public ResponseMessage> list() { + List listVYsdds=vYsddService.getList(VYsddEntity.class); + return Result.success(listVYsdds); + } + + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + @ApiOperation(value="根据ID获取v_ysdd信息",notes="根据ID获取v_ysdd信息",httpMethod="GET",produces="application/json") + public ResponseMessage get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) { + VYsddEntity task = vYsddService.get(VYsddEntity.class, id); + if (task == null) { + return Result.error("根据ID获取v_ysdd信息为空"); + } + return Result.success(task); + } + + @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) + @ResponseBody + @ApiOperation(value="创建v_ysdd") + public ResponseMessage create(@ApiParam(name="v_ysdd对象")@RequestBody VYsddEntity vYsdd, UriComponentsBuilder uriBuilder) { + //调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息. + Set> failures = validator.validate(vYsdd); + if (!failures.isEmpty()) { + return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures))); + } + + //保存 + try{ + vYsddService.save(vYsdd); + } catch (Exception e) { + e.printStackTrace(); + return Result.error("v_ysdd信息保存失败"); + } + return Result.success(vYsdd); + } + + @RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) + @ResponseBody + @ApiOperation(value="更新v_ysdd",notes="更新v_ysdd") + public ResponseMessage update(@ApiParam(name="v_ysdd对象")@RequestBody VYsddEntity vYsdd) { + //调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息. + Set> failures = validator.validate(vYsdd); + if (!failures.isEmpty()) { + return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures))); + } + + //保存 + try{ + vYsddService.saveOrUpdate(vYsdd); + } catch (Exception e) { + e.printStackTrace(); + return Result.error("更新v_ysdd信息失败"); + } + + //按Restful约定,返回204状态码, 无内容. 也可以返回200状态码. + return Result.success("更新v_ysdd信息成功"); + } + + @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) + @ResponseStatus(HttpStatus.NO_CONTENT) + @ApiOperation(value="删除v_ysdd") + public ResponseMessage delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) { + logger.info("delete[{}]" + id); + // 验证 + if (StringUtils.isEmpty(id)) { + return Result.error("ID不能为空"); + } + try { + vYsddService.deleteEntityById(VYsddEntity.class, id); + } catch (Exception e) { + e.printStackTrace(); + return Result.error("v_ysdd删除失败"); + } + + return Result.success(); + } +} diff --git a/src/main/java/com/zzjee/tmsv/entity/VYsddEntity.java b/src/main/java/com/zzjee/tmsv/entity/VYsddEntity.java new file mode 100644 index 00000000..764b5956 --- /dev/null +++ b/src/main/java/com/zzjee/tmsv/entity/VYsddEntity.java @@ -0,0 +1,433 @@ +package com.zzjee.tmsv.entity; + +import org.hibernate.annotations.GenericGenerator; +import org.jeecgframework.poi.excel.annotation.Excel; + +import javax.persistence.*; +import java.util.Date; + +/** + * @Title: Entity + * @Description: v_ysdd + * @author onlineGenerator + * @date 2018-05-04 00:07:37 + * @version V1.0 + * + */ +@Entity +@Table(name = "v_ysdd", schema = "") +@SuppressWarnings("serial") +public class VYsddEntity implements java.io.Serializable { + /**主键*/ + + private String id; + /**下单日期*/ + @Excel(name="下单日期",width=15) + + private Date createDate; + /**发货人*/ + @Excel(name="发货人",width=15) + + private String fahuoren; + /**货物*/ + @Excel(name="货物",width=15) + + private String huowu; + /**件数*/ + @Excel(name="件数",width=15) + + private String hwshjs; + /**重量*/ + @Excel(name="重量",width=15) + + private String zhongl; + /**立方米*/ + @Excel(name="立方米",width=15) + + private String tiji; + /**收货人地址*/ + @Excel(name="收货人地址",width=15) + + private String shrdh; + /**收货人*/ + @Excel(name="收货人",width=15) + + private String shouhuoren; + /**送货方式*/ + @Excel(name="送货方式",width=15) + + private String hwshfs; + /**收货人电话*/ + @Excel(name="收货人电话",width=15) + + private String shrsj; + /**代收款金额*/ + @Excel(name="代收款金额",width=15) + + private String daishouk; + /**运费*/ + @Excel(name="运费",width=15) + + private String hwyf; + /**货物总费用*/ + @Excel(name="货物总费用",width=15) + + private String hwzfy; + /**卸货费*/ + @Excel(name="卸货费",width=15) + + private String hwxhf; + /**车号*/ + @Excel(name="车号",width=15) + + private String chehao; + /**状态*/ + @Excel(name="状态",width=15) + + private String zhuangtai; + /**回单备注*/ + @Excel(name="回单备注",width=15) + + private String ywhdbz; + /**送达时间*/ + @Excel(name="送达时间",width=15) + private Date sdsj; + + private String ywkhdh; + + private String by1; + /** + *方法: 取得java.lang.String + *@return: java.lang.String 主键 + */ + @Id + @GeneratedValue(generator = "paymentableGenerator") + @GenericGenerator(name = "paymentableGenerator", strategy = "uuid") + @Column(name ="ID",nullable=false,length=36) + public String getId(){ + return this.id; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 主键 + */ + public void setId(String id){ + this.id = id; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 下单日期 + */ + @Column(name ="CREATE_DATE",nullable=true,length=10) + public Date getCreateDate(){ + return this.createDate; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 下单日期 + */ + public void setCreateDate(Date createDate){ + this.createDate = createDate; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 发货人 + */ + @Column(name ="FAHUOREN",nullable=true,length=32) + public String getFahuoren(){ + return this.fahuoren; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 发货人 + */ + public void setFahuoren(String fahuoren){ + this.fahuoren = fahuoren; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 货物 + */ + @Column(name ="HUOWU",nullable=true,length=32) + public String getHuowu(){ + return this.huowu; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 货物 + */ + public void setHuowu(String huowu){ + this.huowu = huowu; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 件数 + */ + @Column(name ="HWSHJS",nullable=true,length=32) + public String getHwshjs(){ + return this.hwshjs; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 件数 + */ + public void setHwshjs(String hwshjs){ + this.hwshjs = hwshjs; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 重量 + */ + @Column(name ="ZHONGL",nullable=true,length=32) + public String getZhongl(){ + return this.zhongl; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 重量 + */ + public void setZhongl(String zhongl){ + this.zhongl = zhongl; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 立方米 + */ + @Column(name ="TIJI",nullable=true,length=32) + public String getTiji(){ + return this.tiji; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 立方米 + */ + public void setTiji(String tiji){ + this.tiji = tiji; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 收货人地址 + */ + @Column(name ="SHRDH",nullable=true,length=32) + public String getShrdh(){ + return this.shrdh; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 收货人地址 + */ + public void setShrdh(String shrdh){ + this.shrdh = shrdh; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 收货人 + */ + @Column(name ="SHOUHUOREN",nullable=true,length=32) + public String getShouhuoren(){ + return this.shouhuoren; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 收货人 + */ + public void setShouhuoren(String shouhuoren){ + this.shouhuoren = shouhuoren; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 送货方式 + */ + @Column(name ="HWSHFS",nullable=true,length=32) + public String getHwshfs(){ + return this.hwshfs; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 送货方式 + */ + public void setHwshfs(String hwshfs){ + this.hwshfs = hwshfs; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 收货人电话 + */ + @Column(name ="SHRSJ",nullable=true,length=32) + public String getShrsj(){ + return this.shrsj; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 收货人电话 + */ + public void setShrsj(String shrsj){ + this.shrsj = shrsj; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 代收款金额 + */ + @Column(name ="DAISHOUK",nullable=true,length=32) + public String getDaishouk(){ + return this.daishouk; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 代收款金额 + */ + public void setDaishouk(String daishouk){ + this.daishouk = daishouk; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 运费 + */ + @Column(name ="HWYF",nullable=true,length=32) + public String getHwyf(){ + return this.hwyf; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 运费 + */ + public void setHwyf(String hwyf){ + this.hwyf = hwyf; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 货物总费用 + */ + @Column(name ="HWZFY",nullable=true,length=256) + public String getHwzfy(){ + return this.hwzfy; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 货物总费用 + */ + public void setHwzfy(String hwzfy){ + this.hwzfy = hwzfy; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 卸货费 + */ + @Column(name ="HWXHF",nullable=true,length=32) + public String getHwxhf(){ + return this.hwxhf; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 卸货费 + */ + public void setHwxhf(String hwxhf){ + this.hwxhf = hwxhf; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 车号 + */ + @Column(name ="CHEHAO",nullable=true,length=32) + public String getChehao(){ + return this.chehao; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 车号 + */ + public void setChehao(String chehao){ + this.chehao = chehao; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 状态 + */ + @Column(name ="ZHUANGTAI",nullable=true,length=32) + public String getZhuangtai(){ + return this.zhuangtai; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 状态 + */ + public void setZhuangtai(String zhuangtai){ + this.zhuangtai = zhuangtai; + } + /** + *方法: 取得java.lang.String + *@return: java.lang.String 回单备注 + */ + @Column(name ="YWHDBZ",nullable=true,length=256) + public String getYwhdbz(){ + return this.ywhdbz; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 回单备注 + */ + public void setYwhdbz(String ywhdbz){ + this.ywhdbz = ywhdbz; + } + /** + *方法: 取得java.util.Date + *@return: java.util.Date 送达时间 + */ + @Column(name ="SDSJ",nullable=true) + public Date getSdsj(){ + return this.sdsj; + } + + /** + *方法: 设置java.util.Date + *@param: java.util.Date 送达时间 + */ + public void setSdsj(Date sdsj){ + this.sdsj = sdsj; + } + + @Column(name ="YWKHDH",nullable=true,length=32) + public String getYwkhdh(){ + return this.ywkhdh; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 客户单号 + */ + public void setYwkhdh(String ywkhdh){ + this.ywkhdh = ywkhdh; + } + + @Column(name ="BY1",nullable=true,length=32) + public String getBy1(){ + return this.by1; + } + + /** + *方法: 设置java.lang.String + *@param: java.lang.String 客户单号 + */ + public void setBy1(String by1){ + this.by1 = by1; + } + +}