袁少华 4 years ago
parent
commit
e4c77e2015

+ 237 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/controller/FbsDispatchListController.java

@@ -0,0 +1,237 @@
+package org.jeecg.modules.fbsDispatchList.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.fbsDispatchList.entity.FbsDispatchList;
+import org.jeecg.modules.fbsDispatchList.service.IFbsDispatchListService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+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 com.alibaba.fastjson.JSON;
+
+ /**
+ * @Title: Controller
+ * @Description: 销售发货退货单主表(表头)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@RestController
+@RequestMapping("/fbsDispatchList/fbsDispatchList")
+@Slf4j
+public class FbsDispatchListController {
+	@Autowired
+	private IFbsDispatchListService fbsDispatchListService;
+	
+	/**
+	  * 分页列表查询
+	 * @param fbsDispatchList
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@GetMapping(value = "/list")
+	public Result<IPage<FbsDispatchList>> queryPageList(FbsDispatchList fbsDispatchList,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<FbsDispatchList>> result = new Result<IPage<FbsDispatchList>>();
+		QueryWrapper<FbsDispatchList> queryWrapper = QueryGenerator.initQueryWrapper(fbsDispatchList, req.getParameterMap());
+		Page<FbsDispatchList> page = new Page<FbsDispatchList>(pageNo, pageSize);
+		IPage<FbsDispatchList> pageList = fbsDispatchListService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param fbsDispatchList
+	 * @return
+	 */
+	@PostMapping(value = "/add")
+	public Result<FbsDispatchList> add(@RequestBody FbsDispatchList fbsDispatchList) {
+		Result<FbsDispatchList> result = new Result<FbsDispatchList>();
+		try {
+			fbsDispatchListService.save(fbsDispatchList);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			e.printStackTrace();
+			log.info(e.getMessage());
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+//	/**
+//	  *  编辑
+//	 * @param fbsDispatchList
+//	 * @return
+//	 */
+//	@PutMapping(value = "/edit")
+//	public Result<FbsDispatchList> edit(@RequestBody FbsDispatchList fbsDispatchList) {
+//		Result<FbsDispatchList> result = new Result<FbsDispatchList>();
+//		FbsDispatchList fbsDispatchListEntity = fbsDispatchListService.getById(fbsDispatchList.getId());
+//		if(fbsDispatchListEntity==null) {
+//			result.error500("未找到对应实体");
+//		}else {
+//			boolean ok = fbsDispatchListService.updateById(fbsDispatchList);
+//			//TODO 返回false说明什么?
+//			if(ok) {
+//				result.success("修改成功!");
+//			}
+//		}
+//
+//		return result;
+//	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@DeleteMapping(value = "/delete")
+	public Result<FbsDispatchList> delete(@RequestParam(name="id",required=true) String id) {
+		Result<FbsDispatchList> result = new Result<FbsDispatchList>();
+		FbsDispatchList fbsDispatchList = fbsDispatchListService.getById(id);
+		if(fbsDispatchList==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = fbsDispatchListService.removeById(id);
+			if(ok) {
+				result.success("删除成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<FbsDispatchList> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<FbsDispatchList> result = new Result<FbsDispatchList>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.fbsDispatchListService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@GetMapping(value = "/queryById")
+	public Result<FbsDispatchList> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<FbsDispatchList> result = new Result<FbsDispatchList>();
+		FbsDispatchList fbsDispatchList = fbsDispatchListService.getById(id);
+		if(fbsDispatchList==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(fbsDispatchList);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<FbsDispatchList> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              FbsDispatchList fbsDispatchList = JSON.parseObject(deString, FbsDispatchList.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(fbsDispatchList, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<FbsDispatchList> pageList = fbsDispatchListService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "销售发货退货单主表(表头)列表");
+      mv.addObject(NormalExcelConstants.CLASS, FbsDispatchList.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("销售发货退货单主表(表头)列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<FbsDispatchList> listFbsDispatchLists = ExcelImportUtil.importExcel(file.getInputStream(), FbsDispatchList.class, params);
+              for (FbsDispatchList fbsDispatchListExcel : listFbsDispatchLists) {
+                  fbsDispatchListService.save(fbsDispatchListExcel);
+              }
+              return Result.ok("文件导入成功!数据行数:" + listFbsDispatchLists.size());
+          } catch (Exception e) {
+              log.error(e.getMessage());
+              return Result.error("文件导入失败!");
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 381 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/entity/FbsDispatchList.java

@@ -0,0 +1,381 @@
+package org.jeecg.modules.fbsDispatchList.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * @Description: 销售发货退货单主表(表头)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@Data
+@TableName("DispatchList")
+public class FbsDispatchList implements Serializable {
+    private static final long serialVersionUID = 1L;
+    
+	/**dlid*/
+	@Excel(name = "dlid", width = 15)
+	private Integer dlid;
+	/**cdlcode*/
+	@Excel(name = "cdlcode", width = 15)
+	private String cdlcode;
+	/**cvouchtype*/
+	@Excel(name = "cvouchtype", width = 15)
+	private String cvouchtype;
+	/**cstcode*/
+	@Excel(name = "cstcode", width = 15)
+	private String cstcode;
+	/**ddate*/
+	@Excel(name = "ddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date ddate;
+	/**crdcode*/
+	@Excel(name = "crdcode", width = 15)
+	private String crdcode;
+	/**cdepcode*/
+	@Excel(name = "cdepcode", width = 15)
+	private String cdepcode;
+	/**cpersoncode*/
+	@Excel(name = "cpersoncode", width = 15)
+	private String cpersoncode;
+	/**sbvid*/
+	@Excel(name = "sbvid", width = 15)
+	private Integer sbvid;
+	/**csbvcode*/
+	@Excel(name = "csbvcode", width = 15)
+	private String csbvcode;
+	/**csocode*/
+	@Excel(name = "csocode", width = 15)
+	private String csocode;
+	/**ccuscode*/
+	@Excel(name = "ccuscode", width = 15)
+	private String ccuscode;
+	/**cpaycode*/
+	@Excel(name = "cpaycode", width = 15)
+	private String cpaycode;
+	/**csccode*/
+	@Excel(name = "csccode", width = 15)
+	private String csccode;
+	/**cshipaddress*/
+	@Excel(name = "cshipaddress", width = 15)
+	private String cshipaddress;
+	/**cexchName*/
+	@Excel(name = "cexchName", width = 15)
+	private String cexchName;
+	/**iexchrate*/
+	@Excel(name = "iexchrate", width = 15)
+	private Float iexchrate;
+	/**itaxrate*/
+	@Excel(name = "itaxrate", width = 15)
+	private Float itaxrate;
+	/**bfirst*/
+	@Excel(name = "bfirst", width = 15)
+	private Object bfirst;
+	/**breturnflag*/
+	@Excel(name = "breturnflag", width = 15)
+	private Object breturnflag;
+	/**bsettleall*/
+	@Excel(name = "bsettleall", width = 15)
+	private Object bsettleall;
+	/**cmemo*/
+	@Excel(name = "cmemo", width = 15)
+	private String cmemo;
+	/**csaleout*/
+	@Excel(name = "csaleout", width = 15)
+	private String csaleout;
+	/**cdefine1*/
+	@Excel(name = "cdefine1", width = 15)
+	private String cdefine1;
+	/**cdefine2*/
+	@Excel(name = "cdefine2", width = 15)
+	private String cdefine2;
+	/**cdefine3*/
+	@Excel(name = "cdefine3", width = 15)
+	private String cdefine3;
+	/**cdefine4*/
+	@Excel(name = "cdefine4", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date cdefine4;
+	/**cdefine5*/
+	@Excel(name = "cdefine5", width = 15)
+	private Integer cdefine5;
+	/**cdefine6*/
+	@Excel(name = "cdefine6", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date cdefine6;
+	/**cdefine7*/
+	@Excel(name = "cdefine7", width = 15)
+	private Float cdefine7;
+	/**cdefine8*/
+	@Excel(name = "cdefine8", width = 15)
+	private String cdefine8;
+	/**cdefine9*/
+	@Excel(name = "cdefine9", width = 15)
+	private String cdefine9;
+	/**cdefine10*/
+	@Excel(name = "cdefine10", width = 15)
+	private String cdefine10;
+	/**cverifier*/
+	@Excel(name = "cverifier", width = 15)
+	private String cverifier;
+	/**cmaker*/
+	@Excel(name = "cmaker", width = 15)
+	private String cmaker;
+	/**inetlock*/
+	@Excel(name = "inetlock", width = 15)
+	private Object inetlock;
+	/**isale*/
+	@Excel(name = "isale", width = 15)
+	private Integer isale;
+	/**ccusname*/
+	@Excel(name = "ccusname", width = 15)
+	private String ccusname;
+	/**ivtid*/
+	@Excel(name = "ivtid", width = 15)
+	private Integer ivtid;
+	/**ufts*/
+	private Date ufts;
+	/**cbustype*/
+	@Excel(name = "cbustype", width = 15)
+	private String cbustype;
+	/**ccloser*/
+	@Excel(name = "ccloser", width = 15)
+	private String ccloser;
+	/**caccounter*/
+	@Excel(name = "caccounter", width = 15)
+	private String caccounter;
+	/**ccrechpname*/
+	@Excel(name = "ccrechpname", width = 15)
+	private String ccrechpname;
+	/**cdefine11*/
+	@Excel(name = "cdefine11", width = 15)
+	private String cdefine11;
+	/**cdefine12*/
+	@Excel(name = "cdefine12", width = 15)
+	private String cdefine12;
+	/**cdefine13*/
+	@Excel(name = "cdefine13", width = 15)
+	private String cdefine13;
+	/**cdefine14*/
+	@Excel(name = "cdefine14", width = 15)
+	private String cdefine14;
+	/**cdefine15*/
+	@Excel(name = "cdefine15", width = 15)
+	private Integer cdefine15;
+	/**cdefine16*/
+	@Excel(name = "cdefine16", width = 15)
+	private Float cdefine16;
+	/**biafirst*/
+	@Excel(name = "biafirst", width = 15)
+	private Object biafirst;
+	/**ioutgolden*/
+	@Excel(name = "ioutgolden", width = 15)
+	private Integer ioutgolden;
+	/**cgatheringplan*/
+	@Excel(name = "cgatheringplan", width = 15)
+	private String cgatheringplan;
+	/**dcreditstart*/
+	@Excel(name = "dcreditstart", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dcreditstart;
+	/**dgatheringdate*/
+	@Excel(name = "dgatheringdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dgatheringdate;
+	/**icreditdays*/
+	@Excel(name = "icreditdays", width = 15)
+	private Integer icreditdays;
+	/**bcredit*/
+	@Excel(name = "bcredit", width = 15)
+	private Object bcredit;
+	/**caddcode*/
+	@Excel(name = "caddcode", width = 15)
+	private String caddcode;
+	/**iverifystate*/
+	@Excel(name = "iverifystate", width = 15)
+	private Integer iverifystate;
+	/**ireturncount*/
+	@Excel(name = "ireturncount", width = 15)
+	private Integer ireturncount;
+	/**iswfcontrolled*/
+	@Excel(name = "iswfcontrolled", width = 15)
+	private Integer iswfcontrolled;
+	/**icreditstate*/
+	@Excel(name = "icreditstate", width = 15)
+	private String icreditstate;
+	/**barfirst*/
+	@Excel(name = "barfirst", width = 15)
+	private Object barfirst;
+	/**cmodifier*/
+	@Excel(name = "cmodifier", width = 15)
+	private String cmodifier;
+	/**dmoddate*/
+	@Excel(name = "dmoddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dmoddate;
+	/**dverifydate*/
+	@Excel(name = "dverifydate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dverifydate;
+	/**ccusperson*/
+	@Excel(name = "ccusperson", width = 15)
+	private String ccusperson;
+	/**dcreatesystime*/
+	@Excel(name = "dcreatesystime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dcreatesystime;
+	/**dverifysystime*/
+	@Excel(name = "dverifysystime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dverifysystime;
+	/**dmodifysystime*/
+	@Excel(name = "dmodifysystime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dmodifysystime;
+	/**csvouchtype*/
+	@Excel(name = "csvouchtype", width = 15)
+	private String csvouchtype;
+	/**iflowid*/
+	@Excel(name = "iflowid", width = 15)
+	private Integer iflowid;
+	/**bsigncreate*/
+	@Excel(name = "bsigncreate", width = 15)
+	private Object bsigncreate;
+	/**bcashsale*/
+	@Excel(name = "bcashsale", width = 15)
+	private Object bcashsale;
+	/**cgathingcode*/
+	@Excel(name = "cgathingcode", width = 15)
+	private String cgathingcode;
+	/**cchanger*/
+	@Excel(name = "cchanger", width = 15)
+	private String cchanger;
+	/**cchangememo*/
+	@Excel(name = "cchangememo", width = 15)
+	private String cchangememo;
+	/**outid*/
+	@Excel(name = "outid", width = 15)
+	private String outid;
+	/**bmustbook*/
+	@Excel(name = "bmustbook", width = 15)
+	private Object bmustbook;
+	/**cbookdepcode*/
+	@Excel(name = "cbookdepcode", width = 15)
+	private String cbookdepcode;
+	/**cbooktype*/
+	@Excel(name = "cbooktype", width = 15)
+	private String cbooktype;
+	/**bsaused*/
+	@Excel(name = "bsaused", width = 15)
+	private Object bsaused;
+	/**bneedbill*/
+	@Excel(name = "bneedbill", width = 15)
+	private Object bneedbill;
+	/**baccswitchflag*/
+	@Excel(name = "baccswitchflag", width = 15)
+	private Object baccswitchflag;
+	/**iprintcount*/
+	@Excel(name = "iprintcount", width = 15)
+	private Integer iprintcount;
+	/**ccuspersoncode*/
+	@Excel(name = "ccuspersoncode", width = 15)
+	private String ccuspersoncode;
+	/**csourcecode*/
+	@Excel(name = "csourcecode", width = 15)
+	private String csourcecode;
+	/**bsaleoutcreatebill*/
+	@Excel(name = "bsaleoutcreatebill", width = 15)
+	private Object bsaleoutcreatebill;
+	/**csysbarcode*/
+	@Excel(name = "csysbarcode", width = 15)
+	private String csysbarcode;
+	/**ccurrentauditor*/
+	@Excel(name = "ccurrentauditor", width = 15)
+	private String ccurrentauditor;
+	/**csscode*/
+	@Excel(name = "csscode", width = 15)
+	private String csscode;
+	/**cinvoicecompany*/
+	@Excel(name = "cinvoicecompany", width = 15)
+	private String cinvoicecompany;
+	/**febweight*/
+	@Excel(name = "febweight", width = 15)
+	private java.math.BigDecimal febweight;
+	/**cebweightunit*/
+	@Excel(name = "cebweightunit", width = 15)
+	private String cebweightunit;
+	/**cebexpresscode*/
+	@Excel(name = "cebexpresscode", width = 15)
+	private String cebexpresscode;
+	/**iebexpresscoid*/
+	@Excel(name = "iebexpresscoid", width = 15)
+	private Integer iebexpresscoid;
+	/**separateid*/
+	@Excel(name = "separateid", width = 15)
+	private Integer separateid;
+	/**bnottogoldtax*/
+	@Excel(name = "bnottogoldtax", width = 15)
+	private Integer bnottogoldtax;
+	/**cebtrnumber*/
+	@Excel(name = "cebtrnumber", width = 15)
+	private String cebtrnumber;
+	/**cebbuyer*/
+	@Excel(name = "cebbuyer", width = 15)
+	private String cebbuyer;
+	/**cebbuyernote*/
+	@Excel(name = "cebbuyernote", width = 15)
+	private String cebbuyernote;
+	/**ccontactname*/
+	@Excel(name = "ccontactname", width = 15)
+	private String ccontactname;
+	/**cebprovince*/
+	@Excel(name = "cebprovince", width = 15)
+	private String cebprovince;
+	/**cebcity*/
+	@Excel(name = "cebcity", width = 15)
+	private String cebcity;
+	/**cebdistrict*/
+	@Excel(name = "cebdistrict", width = 15)
+	private String cebdistrict;
+	/**cmobilephone*/
+	@Excel(name = "cmobilephone", width = 15)
+	private String cmobilephone;
+	/**cinvoicecusname*/
+	@Excel(name = "cinvoicecusname", width = 15)
+	private String cinvoicecusname;
+	/**cweighter*/
+	@Excel(name = "cweighter", width = 15)
+	private String cweighter;
+	/**dweighttime*/
+	@Excel(name = "dweighttime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dweighttime;
+	/**cpickvouchcode*/
+	@Excel(name = "cpickvouchcode", width = 15)
+	private String cpickvouchcode;
+	/**cgcroutecode*/
+	@Excel(name = "cgcroutecode", width = 15)
+	private String cgcroutecode;
+	/**cbcode*/
+	@Excel(name = "cbcode", width = 15)
+	private String cbcode;
+}

+ 17 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/mapper/FbsDispatchListMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.fbsDispatchList.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.fbsDispatchList.entity.FbsDispatchList;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 销售发货退货单主表(表头)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+public interface FbsDispatchListMapper extends BaseMapper<FbsDispatchList> {
+
+}

+ 5 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/mapper/xml/FbsDispatchListMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.fbsDispatchList.mapper.FbsDispatchListMapper">
+
+</mapper>

+ 14 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/service/IFbsDispatchListService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.fbsDispatchList.service;
+
+import org.jeecg.modules.fbsDispatchList.entity.FbsDispatchList;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 销售发货退货单主表(表头)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+public interface IFbsDispatchListService extends IService<FbsDispatchList> {
+
+}

+ 21 - 0
src/main/java/org/jeecg/modules/fbsDispatchList/service/impl/FbsDispatchListServiceImpl.java

@@ -0,0 +1,21 @@
+package org.jeecg.modules.fbsDispatchList.service.impl;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import org.jeecg.modules.fbsDispatchList.entity.FbsDispatchList;
+import org.jeecg.modules.fbsDispatchList.mapper.FbsDispatchListMapper;
+import org.jeecg.modules.fbsDispatchList.service.IFbsDispatchListService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 销售发货退货单主表(表头)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@Service
+@DS("multi-datasource1")
+public class FbsDispatchListServiceImpl extends ServiceImpl<FbsDispatchListMapper, FbsDispatchList> implements IFbsDispatchListService {
+
+}

+ 237 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/controller/FbsDispatchListsController.java

@@ -0,0 +1,237 @@
+package org.jeecg.modules.fbsDispatchLists.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.fbsDispatchLists.entity.FbsDispatchLists;
+import org.jeecg.modules.fbsDispatchLists.service.IFbsDispatchListsService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+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 com.alibaba.fastjson.JSON;
+
+ /**
+ * @Title: Controller
+ * @Description: 销售发货退货单主表(表题)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@RestController
+@RequestMapping("/fbsDispatchLists/fbsDispatchLists")
+@Slf4j
+public class FbsDispatchListsController {
+	@Autowired
+	private IFbsDispatchListsService fbsDispatchListsService;
+	
+	/**
+	  * 分页列表查询
+	 * @param fbsDispatchLists
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@GetMapping(value = "/list")
+	public Result<IPage<FbsDispatchLists>> queryPageList(FbsDispatchLists fbsDispatchLists,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<FbsDispatchLists>> result = new Result<IPage<FbsDispatchLists>>();
+		QueryWrapper<FbsDispatchLists> queryWrapper = QueryGenerator.initQueryWrapper(fbsDispatchLists, req.getParameterMap());
+		Page<FbsDispatchLists> page = new Page<FbsDispatchLists>(pageNo, pageSize);
+		IPage<FbsDispatchLists> pageList = fbsDispatchListsService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param fbsDispatchLists
+	 * @return
+	 */
+	@PostMapping(value = "/add")
+	public Result<FbsDispatchLists> add(@RequestBody FbsDispatchLists fbsDispatchLists) {
+		Result<FbsDispatchLists> result = new Result<FbsDispatchLists>();
+		try {
+			fbsDispatchListsService.save(fbsDispatchLists);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			e.printStackTrace();
+			log.info(e.getMessage());
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param fbsDispatchLists
+	 * @return
+	 */
+//	@PutMapping(value = "/edit")
+//	public Result<FbsDispatchLists> edit(@RequestBody FbsDispatchLists fbsDispatchLists) {
+//		Result<FbsDispatchLists> result = new Result<FbsDispatchLists>();
+//		FbsDispatchLists fbsDispatchListsEntity = fbsDispatchListsService.getById(fbsDispatchLists.getId());
+//		if(fbsDispatchListsEntity==null) {
+//			result.error500("未找到对应实体");
+//		}else {
+//			boolean ok = fbsDispatchListsService.updateById(fbsDispatchLists);
+//			//TODO 返回false说明什么?
+//			if(ok) {
+//				result.success("修改成功!");
+//			}
+//		}
+//
+//		return result;
+//	}
+//
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@DeleteMapping(value = "/delete")
+	public Result<FbsDispatchLists> delete(@RequestParam(name="id",required=true) String id) {
+		Result<FbsDispatchLists> result = new Result<FbsDispatchLists>();
+		FbsDispatchLists fbsDispatchLists = fbsDispatchListsService.getById(id);
+		if(fbsDispatchLists==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = fbsDispatchListsService.removeById(id);
+			if(ok) {
+				result.success("删除成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<FbsDispatchLists> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<FbsDispatchLists> result = new Result<FbsDispatchLists>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.fbsDispatchListsService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@GetMapping(value = "/queryById")
+	public Result<FbsDispatchLists> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<FbsDispatchLists> result = new Result<FbsDispatchLists>();
+		FbsDispatchLists fbsDispatchLists = fbsDispatchListsService.getById(id);
+		if(fbsDispatchLists==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(fbsDispatchLists);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<FbsDispatchLists> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              FbsDispatchLists fbsDispatchLists = JSON.parseObject(deString, FbsDispatchLists.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(fbsDispatchLists, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<FbsDispatchLists> pageList = fbsDispatchListsService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "销售发货退货单主表(表题)列表");
+      mv.addObject(NormalExcelConstants.CLASS, FbsDispatchLists.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("销售发货退货单主表(表题)列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<FbsDispatchLists> listFbsDispatchListss = ExcelImportUtil.importExcel(file.getInputStream(), FbsDispatchLists.class, params);
+              for (FbsDispatchLists fbsDispatchListsExcel : listFbsDispatchListss) {
+                  fbsDispatchListsService.save(fbsDispatchListsExcel);
+              }
+              return Result.ok("文件导入成功!数据行数:" + listFbsDispatchListss.size());
+          } catch (Exception e) {
+              log.error(e.getMessage());
+              return Result.error("文件导入失败!");
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 632 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/entity/FbsDispatchLists.java

@@ -0,0 +1,632 @@
+package org.jeecg.modules.fbsDispatchLists.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * @Description: 销售发货退货单主表(表题)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@Data
+@TableName("DispatchLists")
+public class FbsDispatchLists implements Serializable {
+    private static final long serialVersionUID = 1L;
+    
+	/**autoid*/
+	@Excel(name = "autoid", width = 15)
+	private Integer autoid;
+	/**dlid*/
+	@Excel(name = "dlid", width = 15)
+	private Integer dlid;
+	/**icorid*/
+	@Excel(name = "icorid", width = 15)
+	private Integer icorid;
+	/**cwhcode*/
+	@Excel(name = "cwhcode", width = 15)
+	private String cwhcode;
+	/**cinvcode*/
+	@Excel(name = "cinvcode", width = 15)
+	private String cinvcode;
+	/**iquantity*/
+	@Excel(name = "iquantity", width = 15)
+	private java.math.BigDecimal iquantity;
+	/**inum*/
+	@Excel(name = "inum", width = 15)
+	private java.math.BigDecimal inum;
+	/**iquotedprice*/
+	@Excel(name = "iquotedprice", width = 15)
+	private java.math.BigDecimal iquotedprice;
+	/**iunitprice*/
+	@Excel(name = "iunitprice", width = 15)
+	private java.math.BigDecimal iunitprice;
+	/**itaxunitprice*/
+	@Excel(name = "itaxunitprice", width = 15)
+	private java.math.BigDecimal itaxunitprice;
+	/**imoney*/
+	@Excel(name = "imoney", width = 15)
+	private Object imoney;
+	/**itax*/
+	@Excel(name = "itax", width = 15)
+	private Object itax;
+	/**isum*/
+	@Excel(name = "isum", width = 15)
+	private Object isum;
+	/**idiscount*/
+	@Excel(name = "idiscount", width = 15)
+	private Object idiscount;
+	/**inatunitprice*/
+	@Excel(name = "inatunitprice", width = 15)
+	private java.math.BigDecimal inatunitprice;
+	/**inatmoney*/
+	@Excel(name = "inatmoney", width = 15)
+	private Object inatmoney;
+	/**inattax*/
+	@Excel(name = "inattax", width = 15)
+	private Object inattax;
+	/**inatsum*/
+	@Excel(name = "inatsum", width = 15)
+	private Object inatsum;
+	/**inatdiscount*/
+	@Excel(name = "inatdiscount", width = 15)
+	private Object inatdiscount;
+	/**isettlenum*/
+	@Excel(name = "isettlenum", width = 15)
+	private java.math.BigDecimal isettlenum;
+	/**isettlequantity*/
+	@Excel(name = "isettlequantity", width = 15)
+	private java.math.BigDecimal isettlequantity;
+	/**ibatch*/
+	@Excel(name = "ibatch", width = 15)
+	private Integer ibatch;
+	/**cbatch*/
+	@Excel(name = "cbatch", width = 15)
+	private String cbatch;
+	/**bsettleall*/
+	@Excel(name = "bsettleall", width = 15)
+	private Object bsettleall;
+	/**cmemo*/
+	@Excel(name = "cmemo", width = 15)
+	private String cmemo;
+	/**cfree1*/
+	@Excel(name = "cfree1", width = 15)
+	private String cfree1;
+	/**cfree2*/
+	@Excel(name = "cfree2", width = 15)
+	private String cfree2;
+	/**itb*/
+	@Excel(name = "itb", width = 15)
+	private Integer itb;
+	/**dvdate*/
+	@Excel(name = "dvdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dvdate;
+	/**tbquantity*/
+	@Excel(name = "tbquantity", width = 15)
+	private java.math.BigDecimal tbquantity;
+	/**tbnum*/
+	@Excel(name = "tbnum", width = 15)
+	private java.math.BigDecimal tbnum;
+	/**isosid*/
+	@Excel(name = "isosid", width = 15)
+	private Integer isosid;
+	/**idlsid*/
+	@Excel(name = "idlsid", width = 15)
+	private Integer idlsid;
+	/**kl*/
+	@Excel(name = "kl", width = 15)
+	private java.math.BigDecimal kl;
+	/**kl2*/
+	@Excel(name = "kl2", width = 15)
+	private java.math.BigDecimal kl2;
+	/**cinvname*/
+	@Excel(name = "cinvname", width = 15)
+	private String cinvname;
+	/**itaxrate*/
+	@Excel(name = "itaxrate", width = 15)
+	private java.math.BigDecimal itaxrate;
+	/**cdefine22*/
+	@Excel(name = "cdefine22", width = 15)
+	private String cdefine22;
+	/**cdefine23*/
+	@Excel(name = "cdefine23", width = 15)
+	private String cdefine23;
+	/**cdefine24*/
+	@Excel(name = "cdefine24", width = 15)
+	private String cdefine24;
+	/**cdefine25*/
+	@Excel(name = "cdefine25", width = 15)
+	private String cdefine25;
+	/**cdefine26*/
+	@Excel(name = "cdefine26", width = 15)
+	private Float cdefine26;
+	/**cdefine27*/
+	@Excel(name = "cdefine27", width = 15)
+	private Float cdefine27;
+	/**foutquantity*/
+	@Excel(name = "foutquantity", width = 15)
+	private java.math.BigDecimal foutquantity;
+	/**foutnum*/
+	@Excel(name = "foutnum", width = 15)
+	private java.math.BigDecimal foutnum;
+	/**citemcode*/
+	@Excel(name = "citemcode", width = 15)
+	private String citemcode;
+	/**citemClass*/
+	@Excel(name = "citemClass", width = 15)
+	private String citemClass;
+	/**fsalecost*/
+	@Excel(name = "fsalecost", width = 15)
+	private java.math.BigDecimal fsalecost;
+	/**fsaleprice*/
+	@Excel(name = "fsaleprice", width = 15)
+	private java.math.BigDecimal fsaleprice;
+	/**cvenabbname*/
+	@Excel(name = "cvenabbname", width = 15)
+	private String cvenabbname;
+	/**citemname*/
+	@Excel(name = "citemname", width = 15)
+	private String citemname;
+	/**citemCname*/
+	@Excel(name = "citemCname", width = 15)
+	private String citemCname;
+	/**cfree3*/
+	@Excel(name = "cfree3", width = 15)
+	private String cfree3;
+	/**cfree4*/
+	@Excel(name = "cfree4", width = 15)
+	private String cfree4;
+	/**cfree5*/
+	@Excel(name = "cfree5", width = 15)
+	private String cfree5;
+	/**cfree6*/
+	@Excel(name = "cfree6", width = 15)
+	private String cfree6;
+	/**cfree7*/
+	@Excel(name = "cfree7", width = 15)
+	private String cfree7;
+	/**cfree8*/
+	@Excel(name = "cfree8", width = 15)
+	private String cfree8;
+	/**cfree9*/
+	@Excel(name = "cfree9", width = 15)
+	private String cfree9;
+	/**cfree10*/
+	@Excel(name = "cfree10", width = 15)
+	private String cfree10;
+	/**bisstqc*/
+	@Excel(name = "bisstqc", width = 15)
+	private Object bisstqc;
+	/**iinvexchrate*/
+	@Excel(name = "iinvexchrate", width = 15)
+	private java.math.BigDecimal iinvexchrate;
+	/**cunitid*/
+	@Excel(name = "cunitid", width = 15)
+	private String cunitid;
+	/**ccode*/
+	@Excel(name = "ccode", width = 15)
+	private String ccode;
+	/**iretquantity*/
+	@Excel(name = "iretquantity", width = 15)
+	private java.math.BigDecimal iretquantity;
+	/**fensettlequan*/
+	@Excel(name = "fensettlequan", width = 15)
+	private java.math.BigDecimal fensettlequan;
+	/**fensettlesum*/
+	@Excel(name = "fensettlesum", width = 15)
+	private Object fensettlesum;
+	/**isettleprice*/
+	@Excel(name = "isettleprice", width = 15)
+	private java.math.BigDecimal isettleprice;
+	/**cdefine28*/
+	@Excel(name = "cdefine28", width = 15)
+	private String cdefine28;
+	/**cdefine29*/
+	@Excel(name = "cdefine29", width = 15)
+	private String cdefine29;
+	/**cdefine30*/
+	@Excel(name = "cdefine30", width = 15)
+	private String cdefine30;
+	/**cdefine31*/
+	@Excel(name = "cdefine31", width = 15)
+	private String cdefine31;
+	/**cdefine32*/
+	@Excel(name = "cdefine32", width = 15)
+	private String cdefine32;
+	/**cdefine33*/
+	@Excel(name = "cdefine33", width = 15)
+	private String cdefine33;
+	/**cdefine34*/
+	@Excel(name = "cdefine34", width = 15)
+	private Integer cdefine34;
+	/**cdefine35*/
+	@Excel(name = "cdefine35", width = 15)
+	private Integer cdefine35;
+	/**cdefine36*/
+	@Excel(name = "cdefine36", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date cdefine36;
+	/**cdefine37*/
+	@Excel(name = "cdefine37", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date cdefine37;
+	/**dmdate*/
+	@Excel(name = "dmdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dmdate;
+	/**bgsp*/
+	@Excel(name = "bgsp", width = 15)
+	private Object bgsp;
+	/**cgspstate*/
+	@Excel(name = "cgspstate", width = 15)
+	private String cgspstate;
+	/**csocode*/
+	@Excel(name = "csocode", width = 15)
+	private String csocode;
+	/**ccorcode*/
+	@Excel(name = "ccorcode", width = 15)
+	private String ccorcode;
+	/**ippartseqid*/
+	@Excel(name = "ippartseqid", width = 15)
+	private Integer ippartseqid;
+	/**ippartid*/
+	@Excel(name = "ippartid", width = 15)
+	private Integer ippartid;
+	/**ippartqty*/
+	@Excel(name = "ippartqty", width = 15)
+	private java.math.BigDecimal ippartqty;
+	/**ccontractid*/
+	@Excel(name = "ccontractid", width = 15)
+	private String ccontractid;
+	/**ccontracttagcode*/
+	@Excel(name = "ccontracttagcode", width = 15)
+	private String ccontracttagcode;
+	/**ccontractrowguid*/
+	@Excel(name = "ccontractrowguid", width = 15)
+	private Object ccontractrowguid;
+	/**imassdate*/
+	@Excel(name = "imassdate", width = 15)
+	private Integer imassdate;
+	/**cmassunit*/
+	@Excel(name = "cmassunit", width = 15)
+	private Integer cmassunit;
+	/**bqaneedcheck*/
+	@Excel(name = "bqaneedcheck", width = 15)
+	private Object bqaneedcheck;
+	/**bqaurgency*/
+	@Excel(name = "bqaurgency", width = 15)
+	private Object bqaurgency;
+	/**bqachecking*/
+	@Excel(name = "bqachecking", width = 15)
+	private Object bqachecking;
+	/**bqachecked*/
+	@Excel(name = "bqachecked", width = 15)
+	private Object bqachecked;
+	/**iqaquantity*/
+	@Excel(name = "iqaquantity", width = 15)
+	private java.math.BigDecimal iqaquantity;
+	/**iqanum*/
+	@Excel(name = "iqanum", width = 15)
+	private java.math.BigDecimal iqanum;
+	/**ccusinvcode*/
+	@Excel(name = "ccusinvcode", width = 15)
+	private String ccusinvcode;
+	/**ccusinvname*/
+	@Excel(name = "ccusinvname", width = 15)
+	private String ccusinvname;
+	/**fsumsignquantity*/
+	@Excel(name = "fsumsignquantity", width = 15)
+	private java.math.BigDecimal fsumsignquantity;
+	/**fsumsignnum*/
+	@Excel(name = "fsumsignnum", width = 15)
+	private java.math.BigDecimal fsumsignnum;
+	/**cbaccounter*/
+	@Excel(name = "cbaccounter", width = 15)
+	private String cbaccounter;
+	/**bcosting*/
+	@Excel(name = "bcosting", width = 15)
+	private Object bcosting;
+	/**cordercode*/
+	@Excel(name = "cordercode", width = 15)
+	private String cordercode;
+	/**iorderrowno*/
+	@Excel(name = "iorderrowno", width = 15)
+	private Integer iorderrowno;
+	/**fcusminprice*/
+	@Excel(name = "fcusminprice", width = 15)
+	private java.math.BigDecimal fcusminprice;
+	/**icostquantity*/
+	@Excel(name = "icostquantity", width = 15)
+	private java.math.BigDecimal icostquantity;
+	/**icostsum*/
+	@Excel(name = "icostsum", width = 15)
+	private Object icostsum;
+	/**ispecialtype*/
+	@Excel(name = "ispecialtype", width = 15)
+	private Integer ispecialtype;
+	/**cvmivencode*/
+	@Excel(name = "cvmivencode", width = 15)
+	private String cvmivencode;
+	/**iexchsum*/
+	@Excel(name = "iexchsum", width = 15)
+	private Object iexchsum;
+	/**imoneysum*/
+	@Excel(name = "imoneysum", width = 15)
+	private Object imoneysum;
+	/**irowno*/
+	@Excel(name = "irowno", width = 15)
+	private Integer irowno;
+	/**frettbquantity*/
+	@Excel(name = "frettbquantity", width = 15)
+	private java.math.BigDecimal frettbquantity;
+	/**fretsum*/
+	@Excel(name = "fretsum", width = 15)
+	private java.math.BigDecimal fretsum;
+	/**iexpiratdatecalcu*/
+	@Excel(name = "iexpiratdatecalcu", width = 15)
+	private Integer iexpiratdatecalcu;
+	/**dexpirationdate*/
+	@Excel(name = "dexpirationdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dexpirationdate;
+	/**cexpirationdate*/
+	@Excel(name = "cexpirationdate", width = 15)
+	private String cexpirationdate;
+	/**cbatchproperty1*/
+	@Excel(name = "cbatchproperty1", width = 15)
+	private java.math.BigDecimal cbatchproperty1;
+	/**cbatchproperty2*/
+	@Excel(name = "cbatchproperty2", width = 15)
+	private java.math.BigDecimal cbatchproperty2;
+	/**cbatchproperty3*/
+	@Excel(name = "cbatchproperty3", width = 15)
+	private java.math.BigDecimal cbatchproperty3;
+	/**cbatchproperty4*/
+	@Excel(name = "cbatchproperty4", width = 15)
+	private java.math.BigDecimal cbatchproperty4;
+	/**cbatchproperty5*/
+	@Excel(name = "cbatchproperty5", width = 15)
+	private java.math.BigDecimal cbatchproperty5;
+	/**cbatchproperty6*/
+	@Excel(name = "cbatchproperty6", width = 15)
+	private String cbatchproperty6;
+	/**cbatchproperty7*/
+	@Excel(name = "cbatchproperty7", width = 15)
+	private String cbatchproperty7;
+	/**cbatchproperty8*/
+	@Excel(name = "cbatchproperty8", width = 15)
+	private String cbatchproperty8;
+	/**cbatchproperty9*/
+	@Excel(name = "cbatchproperty9", width = 15)
+	private String cbatchproperty9;
+	/**cbatchproperty10*/
+	@Excel(name = "cbatchproperty10", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date cbatchproperty10;
+	/**dblpreexchmomey*/
+	@Excel(name = "dblpreexchmomey", width = 15)
+	private java.math.BigDecimal dblpreexchmomey;
+	/**dblpremomey*/
+	@Excel(name = "dblpremomey", width = 15)
+	private java.math.BigDecimal dblpremomey;
+	/**idemandtype*/
+	@Excel(name = "idemandtype", width = 15)
+	private Integer idemandtype;
+	/**cdemandcode*/
+	@Excel(name = "cdemandcode", width = 15)
+	private String cdemandcode;
+	/**cdemandmemo*/
+	@Excel(name = "cdemandmemo", width = 15)
+	private String cdemandmemo;
+	/**cdemandid*/
+	@Excel(name = "cdemandid", width = 15)
+	private String cdemandid;
+	/**idemandseq*/
+	@Excel(name = "idemandseq", width = 15)
+	private Integer idemandseq;
+	/**cvencode*/
+	@Excel(name = "cvencode", width = 15)
+	private String cvencode;
+	/**creasoncode*/
+	@Excel(name = "creasoncode", width = 15)
+	private String creasoncode;
+	/**cinvsn*/
+	@Excel(name = "cinvsn", width = 15)
+	private String cinvsn;
+	/**iinvsncount*/
+	@Excel(name = "iinvsncount", width = 15)
+	private Integer iinvsncount;
+	/**bneedsign*/
+	@Excel(name = "bneedsign", width = 15)
+	private Object bneedsign;
+	/**bsignover*/
+	@Excel(name = "bsignover", width = 15)
+	private Object bsignover;
+	/**bneedloss*/
+	@Excel(name = "bneedloss", width = 15)
+	private Object bneedloss;
+	/**flossrate*/
+	@Excel(name = "flossrate", width = 15)
+	private java.math.BigDecimal flossrate;
+	/**frlossqty*/
+	@Excel(name = "frlossqty", width = 15)
+	private java.math.BigDecimal frlossqty;
+	/**fulossqty*/
+	@Excel(name = "fulossqty", width = 15)
+	private java.math.BigDecimal fulossqty;
+	/**isettletype*/
+	@Excel(name = "isettletype", width = 15)
+	private Integer isettletype;
+	/**crelacuscode*/
+	@Excel(name = "crelacuscode", width = 15)
+	private String crelacuscode;
+	/**clossmaker*/
+	@Excel(name = "clossmaker", width = 15)
+	private String clossmaker;
+	/**dlossdate*/
+	@Excel(name = "dlossdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dlossdate;
+	/**dlosstime*/
+	@Excel(name = "dlosstime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dlosstime;
+	/**icoridlsid*/
+	@Excel(name = "icoridlsid", width = 15)
+	private Integer icoridlsid;
+	/**fretoutqty*/
+	@Excel(name = "fretoutqty", width = 15)
+	private java.math.BigDecimal fretoutqty;
+	/**bodyOutid*/
+	@Excel(name = "bodyOutid", width = 15)
+	private String bodyOutid;
+	/**fveribillqty*/
+	@Excel(name = "fveribillqty", width = 15)
+	private java.math.BigDecimal fveribillqty;
+	/**fveribillsum*/
+	@Excel(name = "fveribillsum", width = 15)
+	private Object fveribillsum;
+	/**fveriretqty*/
+	@Excel(name = "fveriretqty", width = 15)
+	private java.math.BigDecimal fveriretqty;
+	/**fveriretsum*/
+	@Excel(name = "fveriretsum", width = 15)
+	private Object fveriretsum;
+	/**flastsettleqty*/
+	@Excel(name = "flastsettleqty", width = 15)
+	private java.math.BigDecimal flastsettleqty;
+	/**flastsettlesum*/
+	@Excel(name = "flastsettlesum", width = 15)
+	private Object flastsettlesum;
+	/**cbookwhcode*/
+	@Excel(name = "cbookwhcode", width = 15)
+	private String cbookwhcode;
+	/**cinvouchtype*/
+	@Excel(name = "cinvouchtype", width = 15)
+	private String cinvouchtype;
+	/**cposition*/
+	@Excel(name = "cposition", width = 15)
+	private String cposition;
+	/**fretqtywkp*/
+	@Excel(name = "fretqtywkp", width = 15)
+	private java.math.BigDecimal fretqtywkp;
+	/**fretqtyykp*/
+	@Excel(name = "fretqtyykp", width = 15)
+	private java.math.BigDecimal fretqtyykp;
+	/**frettbqtyykp*/
+	@Excel(name = "frettbqtyykp", width = 15)
+	private java.math.BigDecimal frettbqtyykp;
+	/**fretsumykp*/
+	@Excel(name = "fretsumykp", width = 15)
+	private java.math.BigDecimal fretsumykp;
+	/**dkeepdate*/
+	@Excel(name = "dkeepdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dkeepdate;
+	/**cscloser*/
+	@Excel(name = "cscloser", width = 15)
+	private String cscloser;
+	/**isaleoutid*/
+	@Excel(name = "isaleoutid", width = 15)
+	private Integer isaleoutid;
+	/**bsaleprice*/
+	@Excel(name = "bsaleprice", width = 15)
+	private Object bsaleprice;
+	/**bgift*/
+	@Excel(name = "bgift", width = 15)
+	private Object bgift;
+	/**bmpforderclosed*/
+	@Excel(name = "bmpforderclosed", width = 15)
+	private Object bmpforderclosed;
+	/**cbsysbarcode*/
+	@Excel(name = "cbsysbarcode", width = 15)
+	private String cbsysbarcode;
+	/**fxjquantity*/
+	@Excel(name = "fxjquantity", width = 15)
+	private Float fxjquantity;
+	/**fxjnum*/
+	@Excel(name = "fxjnum", width = 15)
+	private Float fxjnum;
+	/**biacreatebill*/
+	@Excel(name = "biacreatebill", width = 15)
+	private Object biacreatebill;
+	/**cparentcode*/
+	@Excel(name = "cparentcode", width = 15)
+	private String cparentcode;
+	/**cchildcode*/
+	@Excel(name = "cchildcode", width = 15)
+	private String cchildcode;
+	/**fchildqty*/
+	@Excel(name = "fchildqty", width = 15)
+	private java.math.BigDecimal fchildqty;
+	/**fchildrate*/
+	@Excel(name = "fchildrate", width = 15)
+	private java.math.BigDecimal fchildrate;
+	/**icalctype*/
+	@Excel(name = "icalctype", width = 15)
+	private Integer icalctype;
+	/**fappretwkpqty*/
+	@Excel(name = "fappretwkpqty", width = 15)
+	private java.math.BigDecimal fappretwkpqty;
+	/**fappretwkpsum*/
+	@Excel(name = "fappretwkpsum", width = 15)
+	private java.math.BigDecimal fappretwkpsum;
+	/**fappretykpqty*/
+	@Excel(name = "fappretykpqty", width = 15)
+	private java.math.BigDecimal fappretykpqty;
+	/**fappretykpsum*/
+	@Excel(name = "fappretykpsum", width = 15)
+	private java.math.BigDecimal fappretykpsum;
+	/**fappretwkptbqty*/
+	@Excel(name = "fappretwkptbqty", width = 15)
+	private java.math.BigDecimal fappretwkptbqty;
+	/**fappretykptbqty*/
+	@Excel(name = "fappretykptbqty", width = 15)
+	private java.math.BigDecimal fappretykptbqty;
+	/**irtnappid*/
+	@Excel(name = "irtnappid", width = 15)
+	private Integer irtnappid;
+	/**crtnappcode*/
+	@Excel(name = "crtnappcode", width = 15)
+	private String crtnappcode;
+	/**fretailrealamount*/
+	@Excel(name = "fretailrealamount", width = 15)
+	private java.math.BigDecimal fretailrealamount;
+	/**fretailsettleamount*/
+	@Excel(name = "fretailsettleamount", width = 15)
+	private java.math.BigDecimal fretailsettleamount;
+	/**cfactorycode*/
+	@Excel(name = "cfactorycode", width = 15)
+	private String cfactorycode;
+	/**gcsourceid*/
+	@Excel(name = "gcsourceid", width = 15)
+	private Integer gcsourceid;
+	/**gcsourceids*/
+	@Excel(name = "gcsourceids", width = 15)
+	private Integer gcsourceids;
+	/**cconfirmer*/
+	@Excel(name = "cconfirmer", width = 15)
+	private String cconfirmer;
+	/**dconfirmdate*/
+	@Excel(name = "dconfirmdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+	private Date dconfirmdate;
+}

+ 17 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/mapper/FbsDispatchListsMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.fbsDispatchLists.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.fbsDispatchLists.entity.FbsDispatchLists;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 销售发货退货单主表(表题)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+public interface FbsDispatchListsMapper extends BaseMapper<FbsDispatchLists> {
+
+}

+ 5 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/mapper/xml/FbsDispatchListsMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.fbsDispatchLists.mapper.FbsDispatchListsMapper">
+
+</mapper>

+ 14 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/service/IFbsDispatchListsService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.fbsDispatchLists.service;
+
+import org.jeecg.modules.fbsDispatchLists.entity.FbsDispatchLists;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 销售发货退货单主表(表题)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+public interface IFbsDispatchListsService extends IService<FbsDispatchLists> {
+
+}

+ 21 - 0
src/main/java/org/jeecg/modules/fbsDispatchLists/service/impl/FbsDispatchListsServiceImpl.java

@@ -0,0 +1,21 @@
+package org.jeecg.modules.fbsDispatchLists.service.impl;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import org.jeecg.modules.fbsDispatchLists.entity.FbsDispatchLists;
+import org.jeecg.modules.fbsDispatchLists.mapper.FbsDispatchListsMapper;
+import org.jeecg.modules.fbsDispatchLists.service.IFbsDispatchListsService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 销售发货退货单主表(表题)
+ * @author: jeecg-boot
+ * @date2020-10-22
+ * @version: V1.0
+ */
+@Service
+@DS("multi-datasource1")
+public class FbsDispatchListsServiceImpl extends ServiceImpl<FbsDispatchListsMapper, FbsDispatchLists> implements IFbsDispatchListsService {
+
+}