mirror of https://gitee.com/jeecg/jeecg.git
Pre Merge pull request !8 from xingqiangProfile/jeecg_3.7.8
commit
c1e3d87aef
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,328 @@
|
||||
package com.jeecg.demo.controller;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Validator;
|
||||
|
||||
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.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.ResourceUtil;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
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.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.jeecg.demo.entity.JeecgDemoExcelEntity;
|
||||
import com.jeecg.demo.service.JeecgDemoExcelServiceI;
|
||||
import com.jeecg.demo.util.FreemarkerUtil;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: excel导入导出测试表
|
||||
* @author onlineGenerator
|
||||
* @date 2018-06-15 15:46:09
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/jeecgDemoExcelController")
|
||||
@Api(value="JeecgDemoExcel",description="excel导入导出测试表",tags="jeecgDemoExcelController")
|
||||
public class JeecgDemoExcelController extends BaseController {
|
||||
private static final Logger logger = LoggerFactory.getLogger(JeecgDemoExcelController.class);
|
||||
|
||||
@Autowired
|
||||
private JeecgDemoExcelServiceI jeecgDemoExcelService;
|
||||
@Autowired
|
||||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* excel导入导出测试表列表 页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "list")
|
||||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/jeecg/demo/excel/jeecgDemoExcelList");
|
||||
}
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @param dataGrid
|
||||
* @param user
|
||||
*/
|
||||
|
||||
@RequestMapping(params = "datagrid")
|
||||
public void datagrid(JeecgDemoExcelEntity jeecgDemoExcel,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(JeecgDemoExcelEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, jeecgDemoExcel, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.add();
|
||||
this.jeecgDemoExcelService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除excel导入导出测试表
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doDel(JeecgDemoExcelEntity jeecgDemoExcel, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
jeecgDemoExcel = systemService.getEntity(JeecgDemoExcelEntity.class, jeecgDemoExcel.getId());
|
||||
message = "excel导入导出测试表删除成功";
|
||||
try{
|
||||
jeecgDemoExcelService.delete(jeecgDemoExcel);
|
||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "excel导入导出测试表删除失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除excel导入导出测试表
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doBatchDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "excel导入导出测试表删除成功";
|
||||
try{
|
||||
for(String id:ids.split(",")){
|
||||
JeecgDemoExcelEntity jeecgDemoExcel = systemService.getEntity(JeecgDemoExcelEntity.class,
|
||||
id
|
||||
);
|
||||
jeecgDemoExcelService.delete(jeecgDemoExcel);
|
||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "excel导入导出测试表删除失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加excel导入导出测试表
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doAdd")
|
||||
@ResponseBody
|
||||
public AjaxJson doAdd(JeecgDemoExcelEntity jeecgDemoExcel, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "excel导入导出测试表添加成功";
|
||||
try{
|
||||
jeecgDemoExcelService.save(jeecgDemoExcel);
|
||||
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "excel导入导出测试表添加失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新excel导入导出测试表
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doUpdate")
|
||||
@ResponseBody
|
||||
public AjaxJson doUpdate(JeecgDemoExcelEntity jeecgDemoExcel, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "excel导入导出测试表更新成功";
|
||||
JeecgDemoExcelEntity t = jeecgDemoExcelService.get(JeecgDemoExcelEntity.class, jeecgDemoExcel.getId());
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(jeecgDemoExcel, t);
|
||||
jeecgDemoExcelService.saveOrUpdate(t);
|
||||
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
message = "excel导入导出测试表更新失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* excel导入导出测试表新增页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goAdd")
|
||||
public ModelAndView goAdd(JeecgDemoExcelEntity jeecgDemoExcel, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(jeecgDemoExcel.getId())) {
|
||||
jeecgDemoExcel = jeecgDemoExcelService.getEntity(JeecgDemoExcelEntity.class, jeecgDemoExcel.getId());
|
||||
req.setAttribute("jeecgDemoExcelPage", jeecgDemoExcel);
|
||||
}
|
||||
return new ModelAndView("com/jeecg/demo/excel/jeecgDemoExcel-add");
|
||||
}
|
||||
/**
|
||||
* excel导入导出测试表编辑页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goUpdate")
|
||||
public ModelAndView goUpdate(JeecgDemoExcelEntity jeecgDemoExcel, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(jeecgDemoExcel.getId())) {
|
||||
jeecgDemoExcel = jeecgDemoExcelService.getEntity(JeecgDemoExcelEntity.class, jeecgDemoExcel.getId());
|
||||
req.setAttribute("jeecgDemoExcelPage", jeecgDemoExcel);
|
||||
}
|
||||
return new ModelAndView("com/jeecg/demo/excel/jeecgDemoExcel-update");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "upload")
|
||||
public ModelAndView upload(HttpServletRequest req) {
|
||||
req.setAttribute("controller_name","jeecgDemoExcelController");
|
||||
return new ModelAndView("common/upload/pub_excel_upload");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXls")
|
||||
public String exportXls(JeecgDemoExcelEntity jeecgDemoExcel,HttpServletRequest request,HttpServletResponse response
|
||||
, DataGrid dataGrid,ModelMap modelMap) {
|
||||
CriteriaQuery cq = new CriteriaQuery(JeecgDemoExcelEntity.class, dataGrid);
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, jeecgDemoExcel, request.getParameterMap());
|
||||
List<JeecgDemoExcelEntity> jeecgDemoExcels = this.jeecgDemoExcelService.getListByCriteriaQuery(cq,false);
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"excel导入导出测试表");
|
||||
modelMap.put(NormalExcelConstants.CLASS,JeecgDemoExcelEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("excel导入导出测试表列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,jeecgDemoExcels);
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXlsByT")
|
||||
public String exportXlsByT(JeecgDemoExcelEntity jeecgDemoExcel,HttpServletRequest request,HttpServletResponse response
|
||||
, DataGrid dataGrid,ModelMap modelMap) {
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"excel导入导出测试表");
|
||||
modelMap.put(NormalExcelConstants.CLASS,JeecgDemoExcelEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("excel导入导出测试表列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
AjaxJson j = new AjaxJson();
|
||||
|
||||
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<JeecgDemoExcelEntity> listJeecgDemoExcelEntitys = ExcelImportUtil.importExcel(file.getInputStream(),JeecgDemoExcelEntity.class,params);
|
||||
for (JeecgDemoExcelEntity jeecgDemoExcel : listJeecgDemoExcelEntitys) {
|
||||
jeecgDemoExcelService.save(jeecgDemoExcel);
|
||||
}
|
||||
j.setMsg("文件导入成功!");
|
||||
} catch (Exception e) {
|
||||
j.setMsg("文件导入失败!");
|
||||
logger.error(e.getMessage());
|
||||
}finally{
|
||||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
@RequestMapping("/ftl2word")
|
||||
public void velocity2word(JeecgDemoExcelEntity jeecgDemoExcel,HttpServletRequest request,HttpServletResponse response) throws IOException{
|
||||
try {
|
||||
jeecgDemoExcel = this.jeecgDemoExcelService.getEntity(JeecgDemoExcelEntity.class, jeecgDemoExcel.getId());
|
||||
List<Map<String,Object>> departs = this.systemService.findForJdbc("select id,departname from t_s_depart");
|
||||
String docFileName ="word-模板导出测试.doc";
|
||||
Map<String,Object> rootMap = new HashMap<String,Object>();
|
||||
rootMap.put("info", jeecgDemoExcel);
|
||||
rootMap.put("departs", departs);
|
||||
FreemarkerUtil.createFile("ftl2doc.ftl", docFileName, rootMap, request, response, FreemarkerUtil.WORD_FILE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
package com.jeecg.demo.dao;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.jeecgframework.minidao.annotation.*;
|
||||
import com.jeecg.demo.entity.JeecgDemoEntity;
|
||||
import com.jeecg.demo.entity.JeecgLogReport;
|
||||
import org.jeecgframework.minidao.pojo.MiniDaoPage;
|
||||
|
||||
/**
|
||||
* Minidao例子
|
||||
*
|
||||
*/
|
||||
@MiniDao
|
||||
public interface JeecgMinidaoDao {
|
||||
|
||||
@Arguments("pid")
|
||||
@Sql("select id,name,pid from t_s_region where pid=:pid order by name_en")
|
||||
List<Map<String, String>> getProCity(String pid);
|
||||
|
||||
@Sql("select id,name,pid from t_s_region order by name_en")
|
||||
List<Map<String, String>> getAllRegions();
|
||||
|
||||
@ResultType(JeecgDemoEntity.class)
|
||||
public MiniDaoPage<JeecgDemoEntity> getAllEntities(@Param("jeecgDemo") JeecgDemoEntity jeecgDemo, @Param("page") int page, @Param("rows") int rows,@Param("sort")String sort, @Param("order")String order,@Param("authSql") String authSql);
|
||||
|
||||
@Sql("select count(*) from jeecg_demo")
|
||||
Integer getCount();
|
||||
|
||||
@Sql("select sum(salary) from jeecg_demo")
|
||||
Integer getSumSalary();
|
||||
|
||||
@Arguments("id")
|
||||
@ResultType(String.class)
|
||||
@Sql("select org_code from t_s_depart where id=:id")
|
||||
public java.lang.String getOrgCode(String id);
|
||||
|
||||
@Arguments("log")
|
||||
@ResultType(JeecgLogReport.class)
|
||||
List<JeecgLogReport> getLogReportData(JeecgLogReport log);
|
||||
|
||||
@Arguments("log")
|
||||
List<Map<String, Object>> getLogChartData(JeecgLogReport log);
|
||||
}
|
||||
@ -0,0 +1,390 @@
|
||||
package com.jeecg.demo.entity;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.codehaus.jackson.map.annotate.JsonDeserialize;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.core.common.controller.CustomJsonDateDeserializer;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: jeecg_demo
|
||||
* @author onlineGenerator
|
||||
* @date 2017-03-22 20:11:23
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jeecg_demo", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JeecgDemoEntity implements java.io.Serializable {
|
||||
/**id*/
|
||||
private java.lang.String id;
|
||||
/**名称*/
|
||||
@Excel(name="名称",width=32)
|
||||
private java.lang.String name;
|
||||
/**年龄*/
|
||||
@Excel(name="年龄")
|
||||
private java.lang.Integer age;
|
||||
/**生日*/
|
||||
@Excel(name="生日",format = "yyyy-MM-dd")
|
||||
private java.util.Date birthday;
|
||||
/**个人介绍*/
|
||||
@Excel(name="个人介绍")
|
||||
private java.lang.String content;
|
||||
/**部门*/
|
||||
@Excel(name="部门",dictTable="t_s_depart",dicCode="id",dicText="departname")
|
||||
private java.lang.String depId;
|
||||
/**邮箱*/
|
||||
@Excel(name="邮箱",width=32)
|
||||
private java.lang.String email;
|
||||
/**电话*/
|
||||
@Excel(name="电话",width=12)
|
||||
private java.lang.String phone;
|
||||
/**工资*/
|
||||
@Excel(name="工资",type=4)
|
||||
private Double salary;
|
||||
/**性别*/
|
||||
@Excel(name="性别",dicCode="sex")
|
||||
private java.lang.String sex;
|
||||
/**入职状态*/
|
||||
@Excel(name="入职状态",dicCode="sf_yn")
|
||||
private java.lang.String status;
|
||||
/**createDate*/
|
||||
private java.util.Date createDate;
|
||||
/**创建人id*/
|
||||
private java.lang.String createBy;
|
||||
/**创建人*/
|
||||
private java.lang.String createName;
|
||||
/**修改人id*/
|
||||
private java.lang.String updateBy;
|
||||
/**修改时间*/
|
||||
private java.util.Date updateDate;
|
||||
/**修改人*/
|
||||
private java.lang.String updateName;
|
||||
/** 组织 */
|
||||
@Excel(name="部门编码",width=200)
|
||||
private java.lang.String sysOrgCode;
|
||||
/** 公司 */
|
||||
private java.lang.String sysCompanyCode;
|
||||
|
||||
private java.lang.String touxiang;
|
||||
private java.lang.String fujian;
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
@Column(name ="ID",nullable=false,length=32)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String id
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 名称
|
||||
*/
|
||||
@Column(name ="NAME",nullable=false,length=255)
|
||||
public java.lang.String getName(){
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 名称
|
||||
*/
|
||||
public void setName(java.lang.String name){
|
||||
this.name = name;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.Integer
|
||||
*@return: java.lang.Integer 年龄
|
||||
*/
|
||||
@Column(name ="AGE",nullable=true,length=10)
|
||||
public java.lang.Integer getAge(){
|
||||
return this.age;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Integer
|
||||
*@param: java.lang.Integer 年龄
|
||||
*/
|
||||
public void setAge(java.lang.Integer age){
|
||||
this.age = age;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 生日
|
||||
*/
|
||||
@Column(name ="BIRTHDAY",nullable=true)
|
||||
public java.util.Date getBirthday(){
|
||||
return this.birthday;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 生日
|
||||
*/
|
||||
@JsonDeserialize(using = CustomJsonDateDeserializer.class)
|
||||
public void setBirthday(java.util.Date birthday){
|
||||
this.birthday = birthday;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 个人介绍
|
||||
*/
|
||||
@Column(name ="CONTENT",nullable=true,length=255)
|
||||
public java.lang.String getContent(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 个人介绍
|
||||
*/
|
||||
public void setContent(java.lang.String content){
|
||||
this.content = content;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 部门
|
||||
*/
|
||||
@Column(name ="DEP_ID",nullable=true,length=255)
|
||||
public java.lang.String getDepId(){
|
||||
return this.depId;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 部门
|
||||
*/
|
||||
public void setDepId(java.lang.String depId){
|
||||
this.depId = depId;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 邮箱
|
||||
*/
|
||||
@Column(name ="EMAIL",nullable=true,length=255)
|
||||
public java.lang.String getEmail(){
|
||||
return this.email;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 邮箱
|
||||
*/
|
||||
public void setEmail(java.lang.String email){
|
||||
this.email = email;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 电话
|
||||
*/
|
||||
@Column(name ="PHONE",nullable=true,length=255)
|
||||
public java.lang.String getPhone(){
|
||||
return this.phone;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 电话
|
||||
*/
|
||||
public void setPhone(java.lang.String phone){
|
||||
this.phone = phone;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 工资
|
||||
*/
|
||||
@Column(name ="SALARY",nullable=true,scale=2,length=19)
|
||||
public Double getSalary(){
|
||||
return this.salary;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 工资
|
||||
*/
|
||||
public void setSalary(Double salary){
|
||||
this.salary = salary;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 性别
|
||||
*/
|
||||
@Column(name ="SEX",nullable=true,length=255)
|
||||
public java.lang.String getSex(){
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 性别
|
||||
*/
|
||||
public void setSex(java.lang.String sex){
|
||||
this.sex = sex;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 入职状态
|
||||
*/
|
||||
@Column(name ="STATUS",nullable=true,length=255)
|
||||
public java.lang.String getStatus(){
|
||||
return this.status;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 入职状态
|
||||
*/
|
||||
public void setStatus(java.lang.String status){
|
||||
this.status = status;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date createDate
|
||||
*/
|
||||
@Column(name ="CREATE_DATE",nullable=true)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date createDate
|
||||
*/
|
||||
@JsonDeserialize(using = CustomJsonDateDeserializer.class)
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人id
|
||||
*/
|
||||
@Column(name ="CREATE_BY",nullable=true,length=32)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人id
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人
|
||||
*/
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=32)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 修改人id
|
||||
*/
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=32)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 修改人id
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 修改时间
|
||||
*/
|
||||
@Column(name ="UPDATE_DATE",nullable=true)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 修改时间
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 修改人
|
||||
*/
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=32)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 修改人
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
@Column(name = "sys_org_code", nullable = true, length = 15)
|
||||
public java.lang.String getSysOrgCode() {
|
||||
return sysOrgCode;
|
||||
}
|
||||
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode) {
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
|
||||
@Column(name = "sys_company_code", nullable = true, length = 15)
|
||||
public java.lang.String getSysCompanyCode() {
|
||||
return sysCompanyCode;
|
||||
}
|
||||
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode) {
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
|
||||
@Column(name = "touxiang", nullable = true, length = 255)
|
||||
public java.lang.String getTouxiang() {
|
||||
return touxiang;
|
||||
}
|
||||
|
||||
public void setTouxiang(java.lang.String touxiang) {
|
||||
this.touxiang = touxiang;
|
||||
}
|
||||
|
||||
@Column(name = "fujian", nullable = true, length = 255)
|
||||
public java.lang.String getFujian() {
|
||||
return fujian;
|
||||
}
|
||||
|
||||
public void setFujian(java.lang.String fujian) {
|
||||
this.fujian = fujian;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.jeecg.demo.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class JeecgDemoPage {
|
||||
private List<JeecgDemoEntity> demos;
|
||||
|
||||
public List<JeecgDemoEntity> getDemos() {
|
||||
return demos;
|
||||
}
|
||||
|
||||
public void setDemos(List<JeecgDemoEntity> demos) {
|
||||
this.demos = demos;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package com.jeecg.demo.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class JeecgLogReport {
|
||||
private String id;
|
||||
private String name;
|
||||
private int ct;
|
||||
private int loginct;
|
||||
private int outct;
|
||||
private int xgct;
|
||||
|
||||
|
||||
public int getOutct() {
|
||||
return outct;
|
||||
}
|
||||
public void setOutct(int outct) {
|
||||
this.outct = outct;
|
||||
}
|
||||
public int getXgct() {
|
||||
return xgct;
|
||||
}
|
||||
public void setXgct(int xgct) {
|
||||
this.xgct = xgct;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public int getCt() {
|
||||
return ct;
|
||||
}
|
||||
public void setCt(int ct) {
|
||||
this.ct = ct;
|
||||
}
|
||||
public int getLoginct() {
|
||||
return loginct;
|
||||
}
|
||||
public void setLoginct(int loginct) {
|
||||
this.loginct = loginct;
|
||||
}
|
||||
private Date beginDate;
|
||||
private Date endDate;
|
||||
|
||||
public Date getBeginDate() {
|
||||
return beginDate;
|
||||
}
|
||||
public void setBeginDate(Date beginDate) {
|
||||
this.beginDate = beginDate;
|
||||
}
|
||||
public Date getEndDate() {
|
||||
return endDate;
|
||||
}
|
||||
public void setEndDate(Date endDate) {
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
|
||||
private int value;
|
||||
private String color;
|
||||
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,160 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单客户信息
|
||||
* @author onlineGenerator
|
||||
* @date 2018-03-27 16:21:58
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_customer", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderCustomer2Entity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**客户名*/
|
||||
@Excel(name="客户名",width=15)
|
||||
private java.lang.String name;
|
||||
/**单价*/
|
||||
@Excel(name="单价",width=15)
|
||||
private java.lang.Double money;
|
||||
/**性别*/
|
||||
@Excel(name="性别",width=15,dicCode="sex")
|
||||
private java.lang.String sex;
|
||||
/**电话*/
|
||||
@Excel(name="电话",width=15)
|
||||
private java.lang.String telphone;
|
||||
/**外键*/
|
||||
private java.lang.String fkId;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 客户名
|
||||
*/
|
||||
|
||||
@Column(name ="NAME",nullable=true,length=32)
|
||||
public java.lang.String getName(){
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 客户名
|
||||
*/
|
||||
public void setName(java.lang.String name){
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 单价
|
||||
*/
|
||||
|
||||
@Column(name ="MONEY",nullable=true,scale=2,length=10)
|
||||
public java.lang.Double getMoney(){
|
||||
return this.money;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 单价
|
||||
*/
|
||||
public void setMoney(java.lang.Double money){
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 性别
|
||||
*/
|
||||
|
||||
@Column(name ="SEX",nullable=true,length=4)
|
||||
public java.lang.String getSex(){
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 性别
|
||||
*/
|
||||
public void setSex(java.lang.String sex){
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 电话
|
||||
*/
|
||||
|
||||
@Column(name ="TELPHONE",nullable=true,length=32)
|
||||
public java.lang.String getTelphone(){
|
||||
return this.telphone;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 电话
|
||||
*/
|
||||
public void setTelphone(java.lang.String telphone){
|
||||
this.telphone = telphone;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 外键
|
||||
*/
|
||||
|
||||
@Column(name ="FK_ID",nullable=false,length=36)
|
||||
public java.lang.String getFkId(){
|
||||
return this.fkId;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 外键
|
||||
*/
|
||||
public void setFkId(java.lang.String fkId){
|
||||
this.fkId = fkId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,171 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: JformOrderMain子表
|
||||
* @author onlineGenerator
|
||||
* @date 2017-09-17 11:49:08
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_customer", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderCustomerEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**客户名*/
|
||||
@Excel(name="客户名",width=15)
|
||||
private java.lang.String name;
|
||||
/**单价*/
|
||||
@Excel(name="单价",width=15)
|
||||
private java.lang.Double money;
|
||||
/**性别*/
|
||||
@Excel(name="性别",width=15,dicCode="sex")
|
||||
private java.lang.String sex;
|
||||
/**电话*/
|
||||
@Excel(name="电话",width=15)
|
||||
private java.lang.String telphone;
|
||||
/**身份证扫描件*/
|
||||
@Excel(name="身份证扫描件",width=15)
|
||||
private java.lang.String sfPic;
|
||||
/**外键*/
|
||||
private java.lang.String fkId;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 客户名
|
||||
*/
|
||||
|
||||
@Column(name ="NAME",nullable=true,length=100)
|
||||
public java.lang.String getName(){
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 客户名
|
||||
*/
|
||||
public void setName(java.lang.String name){
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 单价
|
||||
*/
|
||||
|
||||
@Column(name ="MONEY",nullable=true,scale=2,length=10)
|
||||
public java.lang.Double getMoney(){
|
||||
return this.money;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 单价
|
||||
*/
|
||||
public void setMoney(java.lang.Double money){
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 性别
|
||||
*/
|
||||
|
||||
@Column(name ="SEX",nullable=true,length=4)
|
||||
public java.lang.String getSex(){
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 性别
|
||||
*/
|
||||
public void setSex(java.lang.String sex){
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 电话
|
||||
*/
|
||||
|
||||
@Column(name ="TELPHONE",nullable=true,length=32)
|
||||
public java.lang.String getTelphone(){
|
||||
return this.telphone;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 电话
|
||||
*/
|
||||
public void setTelphone(java.lang.String telphone){
|
||||
this.telphone = telphone;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 身份证扫描件
|
||||
*/
|
||||
|
||||
@Column(name ="SF_PIC",nullable=true,length=500)
|
||||
public java.lang.String getSfPic(){
|
||||
return this.sfPic;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 身份证扫描件
|
||||
*/
|
||||
public void setSfPic(java.lang.String sfPic){
|
||||
this.sfPic = sfPic;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 外键
|
||||
*/
|
||||
|
||||
@Column(name ="FK_ID",nullable=false,length=36)
|
||||
public java.lang.String getFkId(){
|
||||
return this.fkId;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 外键
|
||||
*/
|
||||
public void setFkId(java.lang.String fkId){
|
||||
this.fkId = fkId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,140 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单主信息
|
||||
* @author onlineGenerator
|
||||
* @date 2018-03-27 16:21:58
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_main", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderMain2Entity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**订单号*/
|
||||
@Excel(name="订单号",width=15)
|
||||
private java.lang.String orderCode;
|
||||
/**订单日期*/
|
||||
@Excel(name="订单日期",width=15,format = "yyyy-MM-dd")
|
||||
private java.util.Date orderDate;
|
||||
/**订单金额*/
|
||||
@Excel(name="订单金额",width=15)
|
||||
private java.lang.Double orderMoney;
|
||||
/**备注*/
|
||||
@Excel(name="备注",width=15)
|
||||
private java.lang.String content;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单号
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_CODE",nullable=true,length=50)
|
||||
public java.lang.String getOrderCode(){
|
||||
return this.orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单号
|
||||
*/
|
||||
public void setOrderCode(java.lang.String orderCode){
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 订单日期
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_DATE",nullable=true,length=20)
|
||||
public java.util.Date getOrderDate(){
|
||||
return this.orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 订单日期
|
||||
*/
|
||||
public void setOrderDate(java.util.Date orderDate){
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 订单金额
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_MONEY",nullable=true,scale=3,length=10)
|
||||
public java.lang.Double getOrderMoney(){
|
||||
return this.orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 订单金额
|
||||
*/
|
||||
public void setOrderMoney(java.lang.Double orderMoney){
|
||||
this.orderMoney = orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 备注
|
||||
*/
|
||||
|
||||
@Column(name ="CONTENT",nullable=true,length=255)
|
||||
public java.lang.String getContent(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 备注
|
||||
*/
|
||||
public void setContent(java.lang.String content){
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,151 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单主信息
|
||||
* @author onlineGenerator
|
||||
* @date 2017-09-17 11:49:08
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_main", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderMainEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**订单号*/
|
||||
@Excel(name="订单号",width=15)
|
||||
private java.lang.String orderCode;
|
||||
/**订单日期*/
|
||||
@Excel(name="订单日期",width=15,format = "yyyy-MM-dd")
|
||||
private java.util.Date orderDate;
|
||||
/**订单金额*/
|
||||
@Excel(name="订单金额",width=15)
|
||||
private java.lang.Double orderMoney;
|
||||
/**备注*/
|
||||
@Excel(name="备注",width=15)
|
||||
private java.lang.String content;
|
||||
/**订单扫描件*/
|
||||
@Excel(name="订单扫描件",width=15,dicCode="sex")
|
||||
private java.lang.String ctype;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单号
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_CODE",nullable=true,length=50)
|
||||
public java.lang.String getOrderCode(){
|
||||
return this.orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单号
|
||||
*/
|
||||
public void setOrderCode(java.lang.String orderCode){
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 订单日期
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_DATE",nullable=true,length=20)
|
||||
public java.util.Date getOrderDate(){
|
||||
return this.orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 订单日期
|
||||
*/
|
||||
public void setOrderDate(java.util.Date orderDate){
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 订单金额
|
||||
*/
|
||||
|
||||
@Column(name ="ORDER_MONEY",nullable=true,scale=3,length=10)
|
||||
public java.lang.Double getOrderMoney(){
|
||||
return this.orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 订单金额
|
||||
*/
|
||||
public void setOrderMoney(java.lang.Double orderMoney){
|
||||
this.orderMoney = orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 备注
|
||||
*/
|
||||
|
||||
@Column(name ="CONTENT",nullable=true,length=500)
|
||||
public java.lang.String getContent(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 备注
|
||||
*/
|
||||
public void setContent(java.lang.String content){
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单扫描件
|
||||
*/
|
||||
|
||||
@Column(name ="CTYPE",nullable=true,length=500)
|
||||
public java.lang.String getCtype(){
|
||||
return this.ctype;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单扫描件
|
||||
*/
|
||||
public void setCtype(java.lang.String ctype){
|
||||
this.ctype = ctype;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单机票信息
|
||||
* @author onlineGenerator
|
||||
* @date 2018-03-27 16:21:58
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_ticket", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderTicket2Entity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**航班号*/
|
||||
@Excel(name="航班号",width=15)
|
||||
private java.lang.String ticketCode;
|
||||
/**航班时间*/
|
||||
@Excel(name="航班时间",width=15,format = "yyyy-MM-dd")
|
||||
private java.util.Date tickectDate;
|
||||
/**外键*/
|
||||
private java.lang.String fckId;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 航班号
|
||||
*/
|
||||
|
||||
@Column(name ="TICKET_CODE",nullable=false,length=100)
|
||||
public java.lang.String getTicketCode(){
|
||||
return this.ticketCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 航班号
|
||||
*/
|
||||
public void setTicketCode(java.lang.String ticketCode){
|
||||
this.ticketCode = ticketCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 航班时间
|
||||
*/
|
||||
|
||||
@Column(name ="TICKECT_DATE",nullable=false,length=10)
|
||||
public java.util.Date getTickectDate(){
|
||||
return this.tickectDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 航班时间
|
||||
*/
|
||||
public void setTickectDate(java.util.Date tickectDate){
|
||||
this.tickectDate = tickectDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 外键
|
||||
*/
|
||||
|
||||
@Column(name ="FCK_ID",nullable=false,length=36)
|
||||
public java.lang.String getFckId(){
|
||||
return this.fckId;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 外键
|
||||
*/
|
||||
public void setFckId(java.lang.String fckId){
|
||||
this.fckId = fckId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: JformOrderMain子表
|
||||
* @author onlineGenerator
|
||||
* @date 2017-09-17 11:49:08
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jform_order_ticket", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JformOrderTicketEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**航班号*/
|
||||
@Excel(name="航班号",width=15)
|
||||
private java.lang.String ticketCode;
|
||||
/**航班时间*/
|
||||
@Excel(name="航班时间",width=15,format = "yyyy-MM-dd")
|
||||
private java.util.Date tickectDate;
|
||||
/**外键*/
|
||||
private java.lang.String fckId;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 航班号
|
||||
*/
|
||||
|
||||
@Column(name ="TICKET_CODE",nullable=false,length=100)
|
||||
public java.lang.String getTicketCode(){
|
||||
return this.ticketCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 航班号
|
||||
*/
|
||||
public void setTicketCode(java.lang.String ticketCode){
|
||||
this.ticketCode = ticketCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 航班时间
|
||||
*/
|
||||
|
||||
@Column(name ="TICKECT_DATE",nullable=true,length=10)
|
||||
public java.util.Date getTickectDate(){
|
||||
return this.tickectDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 航班时间
|
||||
*/
|
||||
public void setTickectDate(java.util.Date tickectDate){
|
||||
this.tickectDate = tickectDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 外键
|
||||
*/
|
||||
|
||||
@Column(name ="FCK_ID",nullable=false,length=36)
|
||||
public java.lang.String getFckId(){
|
||||
return this.fckId;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 外键
|
||||
*/
|
||||
public void setFckId(java.lang.String fckId){
|
||||
this.fckId = fckId;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,362 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单列表
|
||||
* @author onlineGenerator
|
||||
* @date 2017-12-14 13:36:56
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jfrom_order", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JfromOrderEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**收货人*/
|
||||
@Excel(name="收货人",width=15)
|
||||
private java.lang.String receiverName;
|
||||
/**联系电话*/
|
||||
@Excel(name="联系电话",width=15)
|
||||
private java.lang.String receiverMobile;
|
||||
/**收货省*/
|
||||
@Excel(name="收货省",width=15)
|
||||
private java.lang.String receiverState;
|
||||
/**收货市*/
|
||||
@Excel(name="收货市",width=15)
|
||||
private java.lang.String receiverCity;
|
||||
/**收货区*/
|
||||
@Excel(name="收货区",width=15)
|
||||
private java.lang.String receiverDistrict;
|
||||
/**收货地址*/
|
||||
@Excel(name="收货地址",width=15)
|
||||
private java.lang.String receiverAddress;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
|
||||
@Column(name ="BPM_STATUS",nullable=true,length=32)
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货人
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_NAME",nullable=true,length=56)
|
||||
public java.lang.String getReceiverName(){
|
||||
return this.receiverName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货人
|
||||
*/
|
||||
public void setReceiverName(java.lang.String receiverName){
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 联系电话
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_MOBILE",nullable=true,length=32)
|
||||
public java.lang.String getReceiverMobile(){
|
||||
return this.receiverMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 联系电话
|
||||
*/
|
||||
public void setReceiverMobile(java.lang.String receiverMobile){
|
||||
this.receiverMobile = receiverMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货省
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_STATE",nullable=true,length=32)
|
||||
public java.lang.String getReceiverState(){
|
||||
return this.receiverState;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货省
|
||||
*/
|
||||
public void setReceiverState(java.lang.String receiverState){
|
||||
this.receiverState = receiverState;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货市
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_CITY",nullable=true,length=32)
|
||||
public java.lang.String getReceiverCity(){
|
||||
return this.receiverCity;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货市
|
||||
*/
|
||||
public void setReceiverCity(java.lang.String receiverCity){
|
||||
this.receiverCity = receiverCity;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货区
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_DISTRICT",nullable=true,length=32)
|
||||
public java.lang.String getReceiverDistrict(){
|
||||
return this.receiverDistrict;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货区
|
||||
*/
|
||||
public void setReceiverDistrict(java.lang.String receiverDistrict){
|
||||
this.receiverDistrict = receiverDistrict;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货地址
|
||||
*/
|
||||
|
||||
@Column(name ="RECEIVER_ADDRESS",nullable=true,length=128)
|
||||
public java.lang.String getReceiverAddress(){
|
||||
return this.receiverAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货地址
|
||||
*/
|
||||
public void setReceiverAddress(java.lang.String receiverAddress){
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,340 @@
|
||||
package com.jeecg.demo.entity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单表体
|
||||
* @author onlineGenerator
|
||||
* @date 2017-12-14 13:36:56
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jfrom_order_line", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class JfromOrderLineEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**订单ID*/
|
||||
private java.lang.String orderid;
|
||||
/**商品名称*/
|
||||
@Excel(name="商品名称",width=15)
|
||||
private java.lang.String itemName;
|
||||
/**商品数量*/
|
||||
@Excel(name="商品数量",width=15)
|
||||
private java.lang.Integer qty;
|
||||
/**商品价格*/
|
||||
@Excel(name="商品价格",width=15)
|
||||
private java.math.BigDecimal price;
|
||||
/**金额*/
|
||||
@Excel(name="金额",width=15)
|
||||
private java.math.BigDecimal amount;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
|
||||
@Column(name ="BPM_STATUS",nullable=true,length=32)
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单ID
|
||||
*/
|
||||
|
||||
@Column(name ="ORDERID",nullable=true,length=36)
|
||||
public java.lang.String getOrderid(){
|
||||
return this.orderid;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单ID
|
||||
*/
|
||||
public void setOrderid(java.lang.String orderid){
|
||||
this.orderid = orderid;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 商品名称
|
||||
*/
|
||||
|
||||
@Column(name ="ITEM_NAME",nullable=true,length=128)
|
||||
public java.lang.String getItemName(){
|
||||
return this.itemName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 商品名称
|
||||
*/
|
||||
public void setItemName(java.lang.String itemName){
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.Integer
|
||||
*@return: java.lang.Integer 商品数量
|
||||
*/
|
||||
|
||||
@Column(name ="QTY",nullable=true,length=32)
|
||||
public java.lang.Integer getQty(){
|
||||
return this.qty;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Integer
|
||||
*@param: java.lang.Integer 商品数量
|
||||
*/
|
||||
public void setQty(java.lang.Integer qty){
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.math.BigDecimal
|
||||
*@return: java.math.BigDecimal 商品价格
|
||||
*/
|
||||
|
||||
@Column(name ="PRICE",nullable=true,length=32)
|
||||
public java.math.BigDecimal getPrice(){
|
||||
return this.price;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.math.BigDecimal
|
||||
*@param: java.math.BigDecimal 商品价格
|
||||
*/
|
||||
public void setPrice(java.math.BigDecimal price){
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 取得java.math.BigDecimal
|
||||
*@return: java.math.BigDecimal 金额
|
||||
*/
|
||||
|
||||
@Column(name ="AMOUNT",nullable=true,length=32)
|
||||
public java.math.BigDecimal getAmount(){
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.math.BigDecimal
|
||||
*@param: java.math.BigDecimal 金额
|
||||
*/
|
||||
public void setAmount(java.math.BigDecimal amount){
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,287 @@
|
||||
package com.jeecg.demo.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 测试多文件上传
|
||||
* @author onlineGenerator
|
||||
* @date 2017-07-17 10:50:36
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jeecg_multi_upload", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class MultiUploadEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**测试文件1*/
|
||||
@Excel(name="测试文件1",width=15)
|
||||
private java.lang.String testFile1;
|
||||
/**测试文件2*/
|
||||
@Excel(name="测试文件2",width=15)
|
||||
private java.lang.String testFile2;
|
||||
/**测试文件3*/
|
||||
@Excel(name="测试文件3",width=15)
|
||||
private java.lang.String testFile3;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
|
||||
@Column(name ="CREATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
|
||||
@Column(name ="UPDATE_DATE",nullable=true,length=20)
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
|
||||
@Column(name ="BPM_STATUS",nullable=true,length=32)
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件1
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_1",nullable=true,length=256)
|
||||
public java.lang.String getTestFile1(){
|
||||
return this.testFile1;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件1
|
||||
*/
|
||||
public void setTestFile1(java.lang.String testFile1){
|
||||
this.testFile1 = testFile1;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件2
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_2",nullable=true,length=256)
|
||||
public java.lang.String getTestFile2(){
|
||||
return this.testFile2;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件2
|
||||
*/
|
||||
public void setTestFile2(java.lang.String testFile2){
|
||||
this.testFile2 = testFile2;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 测试文件3
|
||||
*/
|
||||
|
||||
@Column(name ="TEST_FILE_3",nullable=true,length=256)
|
||||
public java.lang.String getTestFile3(){
|
||||
return this.testFile3;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 测试文件3
|
||||
*/
|
||||
public void setTestFile3(java.lang.String testFile3){
|
||||
this.testFile3 = testFile3;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.jeecg.demo.page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jeecg.demo.entity.JformOrderCustomerEntity;
|
||||
|
||||
/**
|
||||
* 订单客户信息 行编辑用到
|
||||
*/
|
||||
public class JformOrderCustomerPage {
|
||||
private List<JformOrderCustomerEntity> demos;
|
||||
|
||||
public List<JformOrderCustomerEntity> getDemos() {
|
||||
return demos;
|
||||
}
|
||||
|
||||
public void setDemos(List<JformOrderCustomerEntity> demos) {
|
||||
this.demos = demos;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,139 @@
|
||||
|
||||
package com.jeecg.demo.page;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.jeecg.demo.entity.JformOrderCustomer2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderMain2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderTicket2Entity;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单主信息
|
||||
* @author onlineGenerator
|
||||
* @date 2018-03-27 16:21:58
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
public class JformOrderMain2Page implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**订单号*/
|
||||
@Excel(name="订单号")
|
||||
private java.lang.String orderCode;
|
||||
/**订单日期*/
|
||||
@Excel(name="订单日期",format = "yyyy-MM-dd")
|
||||
private java.util.Date orderDate;
|
||||
/**订单金额*/
|
||||
@Excel(name="订单金额")
|
||||
private java.lang.Double orderMoney;
|
||||
/**备注*/
|
||||
@Excel(name="备注")
|
||||
private java.lang.String content;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单号
|
||||
*/
|
||||
public java.lang.String getOrderCode(){
|
||||
return this.orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单号
|
||||
*/
|
||||
public void setOrderCode(java.lang.String orderCode){
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 订单日期
|
||||
*/
|
||||
public java.util.Date getOrderDate(){
|
||||
return this.orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 订单日期
|
||||
*/
|
||||
public void setOrderDate(java.util.Date orderDate){
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 订单金额
|
||||
*/
|
||||
public java.lang.Double getOrderMoney(){
|
||||
return this.orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 订单金额
|
||||
*/
|
||||
public void setOrderMoney(java.lang.Double orderMoney){
|
||||
this.orderMoney = orderMoney;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 备注
|
||||
*/
|
||||
public java.lang.String getContent(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 备注
|
||||
*/
|
||||
public void setContent(java.lang.String content){
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/**保存-订单机票信息*/
|
||||
@ExcelCollection(name="订单机票信息")
|
||||
private List<JformOrderTicket2Entity> jformOrderTicket2List = new ArrayList<JformOrderTicket2Entity>();
|
||||
public List<JformOrderTicket2Entity> getJformOrderTicket2List() {
|
||||
return jformOrderTicket2List;
|
||||
}
|
||||
public void setJformOrderTicket2List(List<JformOrderTicket2Entity> jformOrderTicket2List) {
|
||||
this.jformOrderTicket2List = jformOrderTicket2List;
|
||||
}
|
||||
/**保存-订单客户信息*/
|
||||
@ExcelCollection(name="订单客户信息")
|
||||
private List<JformOrderCustomer2Entity> jformOrderCustomer2List = new ArrayList<JformOrderCustomer2Entity>();
|
||||
public List<JformOrderCustomer2Entity> getJformOrderCustomer2List() {
|
||||
return jformOrderCustomer2List;
|
||||
}
|
||||
public void setJformOrderCustomer2List(List<JformOrderCustomer2Entity> jformOrderCustomer2List) {
|
||||
this.jformOrderCustomer2List = jformOrderCustomer2List;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
private List<JformOrderMain2Entity> jformOrderMain2List = new ArrayList<JformOrderMain2Entity>();
|
||||
public List<JformOrderMain2Entity> getJformOrderMain2List() {
|
||||
return jformOrderMain2List;
|
||||
}
|
||||
public void setJformOrderMain2List(List<JformOrderMain2Entity> jformOrderMain2List) {
|
||||
this.jformOrderMain2List = jformOrderMain2List;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,152 @@
|
||||
|
||||
package com.jeecg.demo.page;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
|
||||
|
||||
import com.jeecg.demo.entity.JformOrderCustomerEntity;
|
||||
import com.jeecg.demo.entity.JformOrderTicketEntity;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单主信息
|
||||
* @author onlineGenerator
|
||||
* @date 2017-09-17 11:49:08
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
public class JformOrderMainPage implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**订单号*/
|
||||
@Excel(name="订单号")
|
||||
private java.lang.String orderCode;
|
||||
/**订单日期*/
|
||||
@Excel(name="订单日期",format = "yyyy-MM-dd")
|
||||
private java.util.Date orderDate;
|
||||
/**订单金额*/
|
||||
@Excel(name="订单金额")
|
||||
private java.lang.Double orderMoney;
|
||||
/**备注*/
|
||||
@Excel(name="备注")
|
||||
private java.lang.String content;
|
||||
/**订单扫描件*/
|
||||
@Excel(name="订单扫描件")
|
||||
private java.lang.String ctype;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单号
|
||||
*/
|
||||
public java.lang.String getOrderCode(){
|
||||
return this.orderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单号
|
||||
*/
|
||||
public void setOrderCode(java.lang.String orderCode){
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 订单日期
|
||||
*/
|
||||
public java.util.Date getOrderDate(){
|
||||
return this.orderDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 订单日期
|
||||
*/
|
||||
public void setOrderDate(java.util.Date orderDate){
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.Double
|
||||
*@return: java.lang.Double 订单金额
|
||||
*/
|
||||
public java.lang.Double getOrderMoney(){
|
||||
return this.orderMoney;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.Double
|
||||
*@param: java.lang.Double 订单金额
|
||||
*/
|
||||
public void setOrderMoney(java.lang.Double orderMoney){
|
||||
this.orderMoney = orderMoney;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 备注
|
||||
*/
|
||||
public java.lang.String getContent(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 备注
|
||||
*/
|
||||
public void setContent(java.lang.String content){
|
||||
this.content = content;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 订单扫描件
|
||||
*/
|
||||
public java.lang.String getCtype(){
|
||||
return this.ctype;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 订单扫描件
|
||||
*/
|
||||
public void setCtype(java.lang.String ctype){
|
||||
this.ctype = ctype;
|
||||
}
|
||||
|
||||
/**保存-JformOrderMain子表*/
|
||||
|
||||
@ExcelCollection(name="订单客户信息")
|
||||
|
||||
private List<JformOrderCustomerEntity> jformOrderCustomerList = new ArrayList<JformOrderCustomerEntity>();
|
||||
public List<JformOrderCustomerEntity> getJformOrderCustomerList() {
|
||||
return jformOrderCustomerList;
|
||||
}
|
||||
public void setJformOrderCustomerList(List<JformOrderCustomerEntity> jformOrderCustomerList) {
|
||||
this.jformOrderCustomerList = jformOrderCustomerList;
|
||||
}
|
||||
/**保存-JformOrderMain子表*/
|
||||
|
||||
@ExcelCollection(name="订单机票信息")
|
||||
|
||||
private List<JformOrderTicketEntity> jformOrderTicketList = new ArrayList<JformOrderTicketEntity>();
|
||||
public List<JformOrderTicketEntity> getJformOrderTicketList() {
|
||||
return jformOrderTicketList;
|
||||
}
|
||||
public void setJformOrderTicketList(List<JformOrderTicketEntity> jformOrderTicketList) {
|
||||
this.jformOrderTicketList = jformOrderTicketList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,320 @@
|
||||
|
||||
package com.jeecg.demo.page;
|
||||
import com.jeecg.demo.entity.JfromOrderEntity;
|
||||
import com.jeecg.demo.entity.JfromOrderLineEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 订单列表
|
||||
* @author onlineGenerator
|
||||
* @date 2017-12-14 13:36:56
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
public class JfromOrderPage implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private java.lang.String id;
|
||||
/**创建人名称*/
|
||||
private java.lang.String createName;
|
||||
/**创建人登录名称*/
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
private java.util.Date createDate;
|
||||
/**更新人名称*/
|
||||
private java.lang.String updateName;
|
||||
/**更新人登录名称*/
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
private java.util.Date updateDate;
|
||||
/**所属部门*/
|
||||
private java.lang.String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private java.lang.String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private java.lang.String bpmStatus;
|
||||
/**收货人*/
|
||||
@Excel(name="收货人")
|
||||
private java.lang.String receiverName;
|
||||
/**联系电话*/
|
||||
@Excel(name="联系电话")
|
||||
private java.lang.String receiverMobile;
|
||||
/**收货省*/
|
||||
@Excel(name="收货省")
|
||||
private java.lang.String receiverState;
|
||||
/**收货市*/
|
||||
@Excel(name="收货市")
|
||||
private java.lang.String receiverCity;
|
||||
/**收货区*/
|
||||
@Excel(name="收货区")
|
||||
private java.lang.String receiverDistrict;
|
||||
/**收货地址*/
|
||||
@Excel(name="收货地址")
|
||||
private java.lang.String receiverAddress;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
public java.lang.String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(java.lang.String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
public java.lang.String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(java.lang.String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public java.lang.String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(java.lang.String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
public java.util.Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(java.util.Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
public java.lang.String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(java.lang.String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public java.lang.String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(java.lang.String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
public java.util.Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(java.util.Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
public java.lang.String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(java.lang.String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
public java.lang.String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(java.lang.String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
public java.lang.String getBpmStatus(){
|
||||
return this.bpmStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 流程状态
|
||||
*/
|
||||
public void setBpmStatus(java.lang.String bpmStatus){
|
||||
this.bpmStatus = bpmStatus;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货人
|
||||
*/
|
||||
public java.lang.String getReceiverName(){
|
||||
return this.receiverName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货人
|
||||
*/
|
||||
public void setReceiverName(java.lang.String receiverName){
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 联系电话
|
||||
*/
|
||||
public java.lang.String getReceiverMobile(){
|
||||
return this.receiverMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 联系电话
|
||||
*/
|
||||
public void setReceiverMobile(java.lang.String receiverMobile){
|
||||
this.receiverMobile = receiverMobile;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货省
|
||||
*/
|
||||
public java.lang.String getReceiverState(){
|
||||
return this.receiverState;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货省
|
||||
*/
|
||||
public void setReceiverState(java.lang.String receiverState){
|
||||
this.receiverState = receiverState;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货市
|
||||
*/
|
||||
public java.lang.String getReceiverCity(){
|
||||
return this.receiverCity;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货市
|
||||
*/
|
||||
public void setReceiverCity(java.lang.String receiverCity){
|
||||
this.receiverCity = receiverCity;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货区
|
||||
*/
|
||||
public java.lang.String getReceiverDistrict(){
|
||||
return this.receiverDistrict;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货区
|
||||
*/
|
||||
public void setReceiverDistrict(java.lang.String receiverDistrict){
|
||||
this.receiverDistrict = receiverDistrict;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 收货地址
|
||||
*/
|
||||
public java.lang.String getReceiverAddress(){
|
||||
return this.receiverAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 收货地址
|
||||
*/
|
||||
public void setReceiverAddress(java.lang.String receiverAddress){
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
/**保存-订单表体*/
|
||||
@ExcelCollection(name="订单表体")
|
||||
private List<JfromOrderLineEntity> jfromOrderLineList = new ArrayList<JfromOrderLineEntity>();
|
||||
public List<JfromOrderLineEntity> getJfromOrderLineList() {
|
||||
return jfromOrderLineList;
|
||||
}
|
||||
public void setJfromOrderLineList(List<JfromOrderLineEntity> jfromOrderLineList) {
|
||||
this.jfromOrderLineList = jfromOrderLineList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.jeecg.demo.service;
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import com.jeecg.demo.entity.JeecgDemoExcelEntity;
|
||||
|
||||
public interface JeecgDemoExcelServiceI extends CommonService{
|
||||
|
||||
public void delete(JeecgDemoExcelEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(JeecgDemoExcelEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(JeecgDemoExcelEntity entity) throws Exception;
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.jeecg.demo.service;
|
||||
import com.jeecg.demo.entity.JeecgDemoEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface JeecgDemoServiceI extends CommonService{
|
||||
|
||||
public void delete(JeecgDemoEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(JeecgDemoEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(JeecgDemoEntity entity) throws Exception;
|
||||
|
||||
public void jdbcBatchSave() throws Exception;
|
||||
|
||||
public void jdbcProcedure() throws Exception;
|
||||
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.jeecg.demo.service;
|
||||
import com.jeecg.demo.entity.JformOrderMain2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderTicket2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderCustomer2Entity;
|
||||
|
||||
import java.util.List;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface JformOrderMain2ServiceI extends CommonService{
|
||||
|
||||
public <T> void delete(T entity);
|
||||
|
||||
/*public <T> void add(T entity);
|
||||
|
||||
public <T> void addOrUpdate(T entity);*/
|
||||
/**
|
||||
* 添加一对多
|
||||
*
|
||||
*/
|
||||
public void addMain(JformOrderMain2Entity jformOrderMain2,
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2List,List<JformOrderCustomer2Entity> jformOrderCustomer2List) ;
|
||||
/**
|
||||
* 修改一对多
|
||||
*
|
||||
*/
|
||||
public void updateMain(JformOrderMain2Entity jformOrderMain2,
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2List,List<JformOrderCustomer2Entity> jformOrderCustomer2List);
|
||||
public void delMain (JformOrderMain2Entity jformOrderMain2);
|
||||
|
||||
/**
|
||||
* 默认按钮-sql增强-新增操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doAddSql(JformOrderMain2Entity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-更新操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doUpdateSql(JformOrderMain2Entity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-删除操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doDelSql(JformOrderMain2Entity t);
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.jeecg.demo.service;
|
||||
import com.jeecg.demo.entity.JformOrderMainEntity;
|
||||
import com.jeecg.demo.entity.JformOrderCustomerEntity;
|
||||
import com.jeecg.demo.entity.JformOrderTicketEntity;
|
||||
|
||||
import java.util.List;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface JformOrderMainServiceI extends CommonService{
|
||||
|
||||
public <T> void delete(T entity);
|
||||
/**
|
||||
* 添加一对多
|
||||
*
|
||||
*/
|
||||
public void addMain(JformOrderMainEntity jformOrderMain,
|
||||
List<JformOrderCustomerEntity> jformOrderCustomerList,List<JformOrderTicketEntity> jformOrderTicketList) ;
|
||||
/**
|
||||
* 修改一对多
|
||||
*
|
||||
*/
|
||||
public void updateMain(JformOrderMainEntity jformOrderMain,
|
||||
List<JformOrderCustomerEntity> jformOrderCustomerList,List<JformOrderTicketEntity> jformOrderTicketList);
|
||||
public void delMain (JformOrderMainEntity jformOrderMain);
|
||||
|
||||
/**
|
||||
* 默认按钮-sql增强-新增操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doAddSql(JformOrderMainEntity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-更新操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doUpdateSql(JformOrderMainEntity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-删除操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doDelSql(JformOrderMainEntity t);
|
||||
/**
|
||||
* 更新客户列表
|
||||
* @param jformOrderCustomerList
|
||||
*/
|
||||
public void updateCustomers(List<JformOrderCustomerEntity> jformOrderCustomerList);
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.jeecg.demo.service;
|
||||
import com.jeecg.demo.entity.JfromOrderEntity;
|
||||
import com.jeecg.demo.entity.JfromOrderLineEntity;
|
||||
|
||||
import java.util.List;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface JfromOrderServiceI extends CommonService{
|
||||
|
||||
public <T> void delete(T entity);
|
||||
/**
|
||||
* 添加一对多
|
||||
*
|
||||
*/
|
||||
public void addMain(JfromOrderEntity jfromOrder,
|
||||
List<JfromOrderLineEntity> jfromOrderLineList) ;
|
||||
/**
|
||||
* 修改一对多
|
||||
*
|
||||
*/
|
||||
public void updateMain(JfromOrderEntity jfromOrder, List<JfromOrderLineEntity> jfromOrderLineList);
|
||||
|
||||
public void delMain (JfromOrderEntity jfromOrder);
|
||||
|
||||
/**
|
||||
* 默认按钮-sql增强-新增操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doAddSql(JfromOrderEntity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-更新操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doUpdateSql(JfromOrderEntity t);
|
||||
/**
|
||||
* 默认按钮-sql增强-删除操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doDelSql(JfromOrderEntity t);
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.jeecg.demo.service;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import com.jeecg.demo.entity.MultiUploadEntity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface MultiUploadServiceI extends CommonService{
|
||||
|
||||
public void delete(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(MultiUploadEntity entity) throws Exception;
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.jeecg.demo.service.impl;
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.jeecg.demo.entity.JeecgDemoExcelEntity;
|
||||
import com.jeecg.demo.service.JeecgDemoExcelServiceI;
|
||||
|
||||
@Service("jeecgDemoExcelService")
|
||||
@Transactional
|
||||
public class JeecgDemoExcelServiceImpl extends CommonServiceImpl implements JeecgDemoExcelServiceI {
|
||||
|
||||
@Autowired
|
||||
private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
|
||||
|
||||
public void delete(JeecgDemoExcelEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
}
|
||||
|
||||
public Serializable save(JeecgDemoExcelEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(JeecgDemoExcelEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.jeecg.demo.service.impl;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jeecgframework.core.common.dao.jdbc.JdbcDao;
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
import org.jeecgframework.core.util.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.jeecg.demo.entity.JeecgDemoEntity;
|
||||
import com.jeecg.demo.service.JeecgDemoServiceI;
|
||||
|
||||
@Service("jeecgDemoService")
|
||||
@Transactional
|
||||
public class JeecgDemoServiceImpl extends CommonServiceImpl implements JeecgDemoServiceI {
|
||||
private static final Logger logger = Logger.getLogger(JeecgDemoServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private JdbcDao jdbcDao;
|
||||
|
||||
|
||||
public void delete(JeecgDemoEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
}
|
||||
|
||||
public Serializable save(JeecgDemoEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(JeecgDemoEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* JDBC批量添加
|
||||
*/
|
||||
@Override
|
||||
public void jdbcBatchSave() throws Exception {
|
||||
final List<JeecgDemoEntity> jeecgDemoList=new ArrayList<JeecgDemoEntity>();
|
||||
for(int i=0;i<1000;i++){
|
||||
JeecgDemoEntity jeecgDemo=new JeecgDemoEntity();
|
||||
jeecgDemo.setId(UUID.randomUUID().toString().replaceAll("-", ""));
|
||||
jeecgDemo.setName("批量测试"+i);
|
||||
jeecgDemo.setAge(10);
|
||||
jeecgDemoList.add(jeecgDemo);
|
||||
}
|
||||
String sql="insert into jeecg_demo (id,name,age,create_date) values (?,?,?,?)";
|
||||
logger.info("-------批处理sql ----"+ sql);
|
||||
jdbcDao.batchUpdate(sql, new BatchPreparedStatementSetter()
|
||||
{
|
||||
public void setValues(PreparedStatement ps,int i)throws SQLException
|
||||
{
|
||||
String id=jeecgDemoList.get(i).getId();
|
||||
String name=jeecgDemoList.get(i).getName();
|
||||
int age=jeecgDemoList.get(i).getAge();
|
||||
ps.setString(1, id);
|
||||
ps.setString(2, name);
|
||||
ps.setInt(3, age);
|
||||
ps.setString(4, DateUtils.date2Str(new SimpleDateFormat("yyyy-MM-dd HH:mm")));
|
||||
}
|
||||
public int getBatchSize()
|
||||
{
|
||||
return jeecgDemoList.size();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行存储过程
|
||||
*/
|
||||
@Override
|
||||
public void jdbcProcedure() throws Exception {
|
||||
String sql = "call delete_jeecgDemo_createDate('"+DateUtils.getDate("yyyy-MM-dd")+"')";
|
||||
logger.info("-------执行存储过程--sql ----"+ sql);
|
||||
jdbcDao.execute(sql);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,205 @@
|
||||
package com.jeecg.demo.service.impl;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
import org.jeecgframework.core.util.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
import org.jeecgframework.core.util.oConvertUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.jeecg.demo.entity.JformOrderCustomer2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderMain2Entity;
|
||||
import com.jeecg.demo.entity.JformOrderTicket2Entity;
|
||||
import com.jeecg.demo.service.JformOrderMain2ServiceI;
|
||||
|
||||
|
||||
@Service("jformOrderMain2Service")
|
||||
@Transactional
|
||||
public class JformOrderMain2ServiceImpl extends CommonServiceImpl implements JformOrderMain2ServiceI {
|
||||
|
||||
public <T> void delete(T entity) {
|
||||
super.delete(entity);
|
||||
}
|
||||
|
||||
public void addMain(JformOrderMain2Entity jformOrderMain2,
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2List,List<JformOrderCustomer2Entity> jformOrderCustomer2List){
|
||||
//保存主信息
|
||||
this.save(jformOrderMain2);
|
||||
|
||||
/**保存-订单机票信息*/
|
||||
for(JformOrderTicket2Entity jformOrderTicket2:jformOrderTicket2List){
|
||||
//外键设置
|
||||
jformOrderTicket2.setFckId(jformOrderMain2.getId());
|
||||
this.save(jformOrderTicket2);
|
||||
}
|
||||
/**保存-订单客户信息*/
|
||||
for(JformOrderCustomer2Entity jformOrderCustomer2:jformOrderCustomer2List){
|
||||
//外键设置
|
||||
jformOrderCustomer2.setFkId(jformOrderMain2.getId());
|
||||
this.save(jformOrderCustomer2);
|
||||
}
|
||||
//执行新增操作配置的sql增强
|
||||
this.doAddSql(jformOrderMain2);
|
||||
}
|
||||
|
||||
|
||||
public void updateMain(JformOrderMain2Entity jformOrderMain2,
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2List,List<JformOrderCustomer2Entity> jformOrderCustomer2List) {
|
||||
//保存主表信息
|
||||
if(StringUtil.isNotEmpty(jformOrderMain2.getId())){
|
||||
try {
|
||||
JformOrderMain2Entity temp = findUniqueByProperty(JformOrderMain2Entity.class, "id", jformOrderMain2.getId());
|
||||
MyBeanUtils.copyBeanNotNull2Bean(jformOrderMain2, temp);
|
||||
this.saveOrUpdate(temp);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}else{
|
||||
this.saveOrUpdate(jformOrderMain2);
|
||||
}
|
||||
//===================================================================================
|
||||
//获取参数
|
||||
Object id0 = jformOrderMain2.getId();
|
||||
Object id1 = jformOrderMain2.getId();
|
||||
//===================================================================================
|
||||
//1.查询出数据库的明细数据-订单机票信息
|
||||
String hql0 = "from JformOrderTicket2Entity where 1 = 1 AND fCK_ID = ? ";
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2OldList = this.findHql(hql0,id0);
|
||||
//2.筛选更新明细数据-订单机票信息
|
||||
if(jformOrderTicket2List!=null&&jformOrderTicket2List.size()>0){
|
||||
for(JformOrderTicket2Entity oldE:jformOrderTicket2OldList){
|
||||
boolean isUpdate = false;
|
||||
for(JformOrderTicket2Entity sendE:jformOrderTicket2List){
|
||||
//需要更新的明细数据-订单机票信息
|
||||
if(oldE.getId().equals(sendE.getId())){
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
|
||||
this.saveOrUpdate(oldE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
isUpdate= true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!isUpdate){
|
||||
//如果数据库存在的明细,前台没有传递过来则是删除-订单机票信息
|
||||
super.delete(oldE);
|
||||
}
|
||||
|
||||
}
|
||||
//3.持久化新增的数据-订单机票信息
|
||||
for(JformOrderTicket2Entity jformOrderTicket2:jformOrderTicket2List){
|
||||
if(oConvertUtils.isEmpty(jformOrderTicket2.getId())){
|
||||
//外键设置
|
||||
jformOrderTicket2.setFckId(jformOrderMain2.getId());
|
||||
this.save(jformOrderTicket2);
|
||||
}
|
||||
}
|
||||
}
|
||||
//===================================================================================
|
||||
//1.查询出数据库的明细数据-订单客户信息
|
||||
String hql1 = "from JformOrderCustomer2Entity where 1 = 1 AND fK_ID = ? ";
|
||||
List<JformOrderCustomer2Entity> jformOrderCustomer2OldList = this.findHql(hql1,id1);
|
||||
//2.筛选更新明细数据-订单客户信息
|
||||
if(jformOrderCustomer2List!=null&&jformOrderCustomer2List.size()>0){
|
||||
for(JformOrderCustomer2Entity oldE:jformOrderCustomer2OldList){
|
||||
boolean isUpdate = false;
|
||||
for(JformOrderCustomer2Entity sendE:jformOrderCustomer2List){
|
||||
//需要更新的明细数据-订单客户信息
|
||||
if(oldE.getId().equals(sendE.getId())){
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
|
||||
this.saveOrUpdate(oldE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
isUpdate= true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!isUpdate){
|
||||
//如果数据库存在的明细,前台没有传递过来则是删除-订单客户信息
|
||||
super.delete(oldE);
|
||||
}
|
||||
|
||||
}
|
||||
//3.持久化新增的数据-订单客户信息
|
||||
for(JformOrderCustomer2Entity jformOrderCustomer2:jformOrderCustomer2List){
|
||||
if(oConvertUtils.isEmpty(jformOrderCustomer2.getId())){
|
||||
//外键设置
|
||||
jformOrderCustomer2.setFkId(jformOrderMain2.getId());
|
||||
this.save(jformOrderCustomer2);
|
||||
}
|
||||
}
|
||||
}
|
||||
//执行更新操作配置的sql增强
|
||||
this.doUpdateSql(jformOrderMain2);
|
||||
}
|
||||
|
||||
|
||||
public void delMain(JformOrderMain2Entity jformOrderMain2) {
|
||||
//删除主表信息
|
||||
this.delete(jformOrderMain2);
|
||||
//===================================================================================
|
||||
//获取参数
|
||||
Object id0 = jformOrderMain2.getId();
|
||||
Object id1 = jformOrderMain2.getId();
|
||||
//===================================================================================
|
||||
//删除-订单机票信息
|
||||
String hql0 = "from JformOrderTicket2Entity where 1 = 1 AND fCK_ID = ? ";
|
||||
List<JformOrderTicket2Entity> jformOrderTicket2OldList = this.findHql(hql0,id0);
|
||||
this.deleteAllEntitie(jformOrderTicket2OldList);
|
||||
//===================================================================================
|
||||
//删除-订单客户信息
|
||||
String hql1 = "from JformOrderCustomer2Entity where 1 = 1 AND fK_ID = ? ";
|
||||
List<JformOrderCustomer2Entity> jformOrderCustomer2OldList = this.findHql(hql1,id1);
|
||||
this.deleteAllEntitie(jformOrderCustomer2OldList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 默认按钮-sql增强-新增操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doAddSql(JformOrderMain2Entity t){
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* 默认按钮-sql增强-更新操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doUpdateSql(JformOrderMain2Entity t){
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* 默认按钮-sql增强-删除操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doDelSql(JformOrderMain2Entity t){
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,JformOrderMain2Entity t){
|
||||
sql = sql.replace("#{id}",String.valueOf(t.getId()));
|
||||
sql = sql.replace("#{order_code}",String.valueOf(t.getOrderCode()));
|
||||
sql = sql.replace("#{order_date}",String.valueOf(t.getOrderDate()));
|
||||
sql = sql.replace("#{order_money}",String.valueOf(t.getOrderMoney()));
|
||||
sql = sql.replace("#{content}",String.valueOf(t.getContent()));
|
||||
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
|
||||
return sql;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,169 @@
|
||||
package com.jeecg.demo.service.impl;
|
||||
import com.jeecg.demo.service.JfromOrderServiceI;
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
import com.jeecg.demo.entity.JfromOrderEntity;
|
||||
import com.jeecg.demo.entity.JfromOrderLineEntity;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import java.util.List;
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
import org.jeecgframework.core.util.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
import org.jeecgframework.core.util.oConvertUtils;
|
||||
import java.util.ArrayList;
|
||||
import java.util.UUID;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@Service("jfromOrderService")
|
||||
@Transactional
|
||||
public class JfromOrderServiceImpl extends CommonServiceImpl implements JfromOrderServiceI {
|
||||
|
||||
public <T> void delete(T entity) {
|
||||
super.delete(entity);
|
||||
//执行删除操作配置的sql增强
|
||||
this.doDelSql((JfromOrderEntity)entity);
|
||||
}
|
||||
|
||||
public void addMain(JfromOrderEntity jfromOrder,
|
||||
List<JfromOrderLineEntity> jfromOrderLineList){
|
||||
//保存主信息
|
||||
this.save(jfromOrder);
|
||||
|
||||
/**保存-订单表体*/
|
||||
for(JfromOrderLineEntity jfromOrderLine:jfromOrderLineList){
|
||||
//外键设置
|
||||
jfromOrderLine.setOrderid(jfromOrder.getId());
|
||||
this.save(jfromOrderLine);
|
||||
}
|
||||
//执行新增操作配置的sql增强
|
||||
this.doAddSql(jfromOrder);
|
||||
}
|
||||
|
||||
|
||||
public void updateMain(JfromOrderEntity jfromOrder,
|
||||
List<JfromOrderLineEntity> jfromOrderLineList) {
|
||||
//保存主表信息
|
||||
if(StringUtil.isNotEmpty(jfromOrder.getId())){
|
||||
try {
|
||||
JfromOrderEntity temp = findUniqueByProperty(JfromOrderEntity.class, "id", jfromOrder.getId());
|
||||
MyBeanUtils.copyBeanNotNull2Bean(jfromOrder, temp);
|
||||
this.saveOrUpdate(temp);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}else{
|
||||
this.saveOrUpdate(jfromOrder);
|
||||
}
|
||||
//===================================================================================
|
||||
//获取参数
|
||||
Object id0 = jfromOrder.getId();
|
||||
//===================================================================================
|
||||
//1.查询出数据库的明细数据-订单表体
|
||||
String hql0 = "from JfromOrderLineEntity where 1 = 1 AND oRDERID = ? ";
|
||||
List<JfromOrderLineEntity> jfromOrderLineOldList = this.findHql(hql0,id0);
|
||||
//2.筛选更新明细数据-订单表体
|
||||
if(jfromOrderLineList!=null&&jfromOrderLineList.size()>0){
|
||||
for(JfromOrderLineEntity oldE:jfromOrderLineOldList){
|
||||
boolean isUpdate = false;
|
||||
for(JfromOrderLineEntity sendE:jfromOrderLineList){
|
||||
//需要更新的明细数据-订单表体
|
||||
if(oldE.getId().equals(sendE.getId())){
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
|
||||
this.saveOrUpdate(oldE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
isUpdate= true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!isUpdate){
|
||||
//如果数据库存在的明细,前台没有传递过来则是删除-订单表体
|
||||
super.delete(oldE);
|
||||
}
|
||||
|
||||
}
|
||||
//3.持久化新增的数据-订单表体
|
||||
for(JfromOrderLineEntity jfromOrderLine:jfromOrderLineList){
|
||||
if(oConvertUtils.isEmpty(jfromOrderLine.getId())){
|
||||
//外键设置
|
||||
jfromOrderLine.setOrderid(jfromOrder.getId());
|
||||
this.save(jfromOrderLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
//执行更新操作配置的sql增强
|
||||
this.doUpdateSql(jfromOrder);
|
||||
}
|
||||
|
||||
|
||||
public void delMain(JfromOrderEntity jfromOrder) {
|
||||
//删除主表信息
|
||||
this.delete(jfromOrder);
|
||||
//===================================================================================
|
||||
//获取参数
|
||||
Object id0 = jfromOrder.getId();
|
||||
//===================================================================================
|
||||
//删除-订单表体
|
||||
String hql0 = "from JfromOrderLineEntity where 1 = 1 AND oRDERID = ? ";
|
||||
List<JfromOrderLineEntity> jfromOrderLineOldList = this.findHql(hql0,id0);
|
||||
this.deleteAllEntitie(jfromOrderLineOldList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 默认按钮-sql增强-新增操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doAddSql(JfromOrderEntity t){
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* 默认按钮-sql增强-更新操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doUpdateSql(JfromOrderEntity t){
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* 默认按钮-sql增强-删除操作
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public boolean doDelSql(JfromOrderEntity t){
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,JfromOrderEntity t){
|
||||
sql = sql.replace("#{id}",String.valueOf(t.getId()));
|
||||
sql = sql.replace("#{create_name}",String.valueOf(t.getCreateName()));
|
||||
sql = sql.replace("#{create_by}",String.valueOf(t.getCreateBy()));
|
||||
sql = sql.replace("#{create_date}",String.valueOf(t.getCreateDate()));
|
||||
sql = sql.replace("#{update_name}",String.valueOf(t.getUpdateName()));
|
||||
sql = sql.replace("#{update_by}",String.valueOf(t.getUpdateBy()));
|
||||
sql = sql.replace("#{update_date}",String.valueOf(t.getUpdateDate()));
|
||||
sql = sql.replace("#{sys_org_code}",String.valueOf(t.getSysOrgCode()));
|
||||
sql = sql.replace("#{sys_company_code}",String.valueOf(t.getSysCompanyCode()));
|
||||
sql = sql.replace("#{bpm_status}",String.valueOf(t.getBpmStatus()));
|
||||
sql = sql.replace("#{receiver_name}",String.valueOf(t.getReceiverName()));
|
||||
sql = sql.replace("#{receiver_mobile}",String.valueOf(t.getReceiverMobile()));
|
||||
sql = sql.replace("#{receiver_state}",String.valueOf(t.getReceiverState()));
|
||||
sql = sql.replace("#{receiver_city}",String.valueOf(t.getReceiverCity()));
|
||||
sql = sql.replace("#{receiver_district}",String.valueOf(t.getReceiverDistrict()));
|
||||
sql = sql.replace("#{receiver_address}",String.valueOf(t.getReceiverAddress()));
|
||||
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
|
||||
return sql;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
SELECT * FROM jeecg_demo WHERE 1=1
|
||||
<#if jeecgDemo.name ?exists && jeecgDemo.name ?length gt 0>
|
||||
and name = :jeecgDemo.name
|
||||
</#if>
|
||||
<#if jeecgDemo.age ?exists && jeecgDemo.age ?length gt 0>
|
||||
and age = :jeecgDemo.age
|
||||
</#if>
|
||||
<#if jeecgDemo.depId ?exists && jeecgDemo.depId ?length gt 0>
|
||||
and dep_id = :jeecgDemo.depId
|
||||
</#if>
|
||||
<#if jeecgDemo.email ?exists && jeecgDemo.email ?length gt 0>
|
||||
and email = :jeecgDemo.email
|
||||
</#if>
|
||||
<#if jeecgDemo.phone ?exists && jeecgDemo.phone ?length gt 0>
|
||||
and phone = :jeecgDemo.phone
|
||||
</#if>
|
||||
<#if jeecgDemo.salary ?exists && jeecgDemo.salary ?length gt 0>
|
||||
and salary = :jeecgDemo.salary
|
||||
</#if>
|
||||
<#if jeecgDemo.sex ?exists && jeecgDemo.sex ?length gt 0>
|
||||
and sex = :jeecgDemo.sex
|
||||
</#if>
|
||||
<#if jeecgDemo.status ?exists && jeecgDemo.status ?length gt 0>
|
||||
and status = :jeecgDemo.status
|
||||
</#if>
|
||||
<#if authSql ?exists && authSql ?length gt 0>
|
||||
${authSql}
|
||||
</#if>
|
||||
<#if sort ?exists && sort ?length gt 0>
|
||||
ORDER BY ${sort} ${order}
|
||||
</#if>
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
SELECT
|
||||
broswer as name,
|
||||
count(1) as 'value',
|
||||
CASE
|
||||
WHEN broswer = 'Firefox' THEN
|
||||
'#FF00FF'
|
||||
WHEN broswer = 'IE' THEN
|
||||
'#FFFF00'
|
||||
ELSE
|
||||
'#43CD80'
|
||||
END as color
|
||||
FROM
|
||||
t_s_log
|
||||
GROUP BY
|
||||
broswer;
|
||||
@ -0,0 +1,34 @@
|
||||
SELECT
|
||||
a.userid as id,
|
||||
b.username as name,
|
||||
count(*) as ct,
|
||||
sum(
|
||||
CASE
|
||||
WHEN RIGHT (logcontent, 4) IN ('登录成功', 'cess') THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END
|
||||
) as loginct,
|
||||
sum(
|
||||
CASE
|
||||
WHEN RIGHT (logcontent, 2) = '退出' THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END
|
||||
) as outct,
|
||||
sum(
|
||||
CASE
|
||||
WHEN RIGHT (logcontent, 4) IN ('删除成功', '更新成功','录入成功') THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END
|
||||
) as xgct
|
||||
FROM
|
||||
t_s_log a join t_s_base_user b on b.id=a.userid
|
||||
GROUP BY
|
||||
a.userid,b.username
|
||||
ORDER BY
|
||||
ct DESC
|
||||
@ -0,0 +1,20 @@
|
||||
package org.jeecgframework.core.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.jeecgframework.core.enums.Permission;
|
||||
|
||||
/**
|
||||
*jeecg权限认证注解
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE,ElementType.METHOD})
|
||||
@Documented
|
||||
public @interface JAuth {
|
||||
String value() default "";
|
||||
Permission auth() default Permission.SKIP_AUTH;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @Title: MySQLServer2008Dialect.java
|
||||
* @Package org.jeecgframework.core.common.hibernate.dialect
|
||||
* @Description: TODO
|
||||
* @author yokoboy
|
||||
* @date 2016-6-7
|
||||
*/
|
||||
package org.jeecgframework.core.common.hibernate.dialect;
|
||||
|
||||
import java.sql.Types;
|
||||
|
||||
import org.hibernate.dialect.SQLServer2008Dialect;
|
||||
import org.hibernate.type.StringType;
|
||||
|
||||
|
||||
/**
|
||||
* ClassName: MySQLServer2008Dialect
|
||||
* @Description: TODO
|
||||
* @author yokoboy
|
||||
* @date 2016-6-7
|
||||
*/
|
||||
public class MySQLServer2008Dialect extends SQLServer2008Dialect {
|
||||
public MySQLServer2008Dialect() {
|
||||
super();
|
||||
registerHibernateType(Types.NVARCHAR, StringType.INSTANCE.getName());
|
||||
}
|
||||
}
|
||||
@ -1,67 +1,67 @@
|
||||
package org.jeecgframework.core.common.hibernate.qbc;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import ognl.Ognl;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.transform.ResultTransformer;
|
||||
|
||||
import com.opensymphony.xwork2.ognl.OgnlUtil;
|
||||
import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
|
||||
|
||||
/**
|
||||
* 此版本运行在xwork-core-2.1.6.jar
|
||||
* 支持属性为自定义对象的结果集转换的部份属性查询
|
||||
* 2009-3-30
|
||||
* @author 苍鹰
|
||||
*/
|
||||
public class AliasToBean implements ResultTransformer {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final OgnlUtil ognlUntil = new OgnlUtil();
|
||||
private static final Map<String,Boolean> context = new HashMap<String,Boolean>(1);
|
||||
static{
|
||||
context.put(ReflectionContextState.CREATE_NULL_OBJECTS, true);
|
||||
}
|
||||
|
||||
/** POJO的class */
|
||||
private final Class<?> resultClass;
|
||||
|
||||
public AliasToBean(Class<?> pojoClass) {
|
||||
if(pojoClass==null) throw new IllegalArgumentException("resultClass cannot be null");
|
||||
this.resultClass = pojoClass;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
public List transformList(List collection) {
|
||||
return collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* 结果集转换
|
||||
* 2009-4-7
|
||||
* @author 苍鹰
|
||||
* @param tuple 属性值集合
|
||||
* @param aliases 属性名集合
|
||||
* @return 单个POJO实例--查询结果
|
||||
*/
|
||||
|
||||
public Object transformTuple(Object[] tuple, String[] aliases) {
|
||||
try {
|
||||
Object root = resultClass.newInstance();
|
||||
for (int i = 0; i < aliases.length; i++) {
|
||||
if(aliases[i]!=null && !aliases[i].equals(""))
|
||||
{
|
||||
Ognl.setValue(ognlUntil.compile(aliases[i]), context, root, tuple[i]);
|
||||
}
|
||||
}
|
||||
return root;
|
||||
} catch (Exception e) {
|
||||
throw new HibernateException(e.getMessage(),e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//package org.jeecgframework.core.common.hibernate.qbc;
|
||||
//
|
||||
//import java.util.HashMap;
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
//import ognl.Ognl;
|
||||
//
|
||||
//import org.hibernate.HibernateException;
|
||||
//import org.hibernate.transform.ResultTransformer;
|
||||
//
|
||||
//import com.opensymphony.xwork2.ognl.OgnlUtil;
|
||||
//import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
|
||||
//
|
||||
///**
|
||||
// * 此版本运行在xwork-core-2.1.6.jar
|
||||
// * 支持属性为自定义对象的结果集转换的部份属性查询
|
||||
// * 2009-3-30
|
||||
// * @author 苍鹰
|
||||
// */
|
||||
//public class AliasToBean implements ResultTransformer {
|
||||
// private static final long serialVersionUID = 1L;
|
||||
// private static final OgnlUtil ognlUntil = new OgnlUtil();
|
||||
// private static final Map<String,Boolean> context = new HashMap<String,Boolean>(1);
|
||||
// static{
|
||||
// context.put(ReflectionContextState.CREATE_NULL_OBJECTS, true);
|
||||
// }
|
||||
//
|
||||
// /** POJO的class */
|
||||
// private final Class<?> resultClass;
|
||||
//
|
||||
// public AliasToBean(Class<?> pojoClass) {
|
||||
// if(pojoClass==null) throw new IllegalArgumentException("resultClass cannot be null");
|
||||
// this.resultClass = pojoClass;
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
//
|
||||
// public List transformList(List collection) {
|
||||
// return collection;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 结果集转换
|
||||
// * 2009-4-7
|
||||
// * @author 苍鹰
|
||||
// * @param tuple 属性值集合
|
||||
// * @param aliases 属性名集合
|
||||
// * @return 单个POJO实例--查询结果
|
||||
// */
|
||||
//
|
||||
// public Object transformTuple(Object[] tuple, String[] aliases) {
|
||||
// try {
|
||||
// Object root = resultClass.newInstance();
|
||||
// for (int i = 0; i < aliases.length; i++) {
|
||||
// if(aliases[i]!=null && !aliases[i].equals(""))
|
||||
// {
|
||||
// Ognl.setValue(ognlUntil.compile(aliases[i]), context, root, tuple[i]);
|
||||
// }
|
||||
// }
|
||||
// return root;
|
||||
// } catch (Exception e) {
|
||||
// throw new HibernateException(e.getMessage(),e);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
package org.jeecgframework.core.common.service;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Title:CgReportExcelServiceI
|
||||
* @description:动态报表excel导出
|
||||
* @author 赵俊夫
|
||||
* @date Aug 1, 2013 8:53:54 AM
|
||||
* @version V1.0
|
||||
*/
|
||||
public interface CommonExcelServiceI extends CommonService{
|
||||
/**
|
||||
*
|
||||
* @param title 标题
|
||||
* @param titleSet 报表头
|
||||
* @param dataSet 报表内容
|
||||
* @return
|
||||
*/
|
||||
public HSSFWorkbook exportExcel(String title, Collection<?> titleSet,Collection<?> dataSet);
|
||||
}
|
||||
@ -0,0 +1,140 @@
|
||||
package org.jeecgframework.core.common.service.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.usermodel.RichTextString;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.jeecgframework.core.common.service.CommonExcelServiceI;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@Service(value="cgReportExcelService")
|
||||
@Transactional
|
||||
public class CommonExcelServiceImpl extends CommonServiceImpl implements
|
||||
CommonExcelServiceI {
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
public HSSFWorkbook exportExcel(String title, Collection<?> titleSet,
|
||||
Collection<?> dataSet) {
|
||||
// 声明一个工作薄
|
||||
HSSFWorkbook workbook = null;
|
||||
try {
|
||||
// 首先检查数据看是否是正确的
|
||||
if (titleSet == null || titleSet.size() == 0) {
|
||||
throw new Exception("读取表头失败!");
|
||||
}
|
||||
if (title == null) {
|
||||
title = "";
|
||||
}
|
||||
// 声明一个工作薄
|
||||
workbook = new HSSFWorkbook();
|
||||
// 生成一个表格
|
||||
Sheet sheet = workbook.createSheet(title);
|
||||
int rindex = 0;
|
||||
int cindex = 0;
|
||||
// 产生表格标题行
|
||||
Row row = sheet.createRow(rindex);
|
||||
row.setHeight((short) 450);
|
||||
CellStyle titleStyle = getTitleStyle(workbook);
|
||||
// Iterator itTitle = titleSet.iterator();
|
||||
List<Map> titleList = (List<Map>) titleSet;
|
||||
Iterator itData = dataSet.iterator();
|
||||
//遍历标题行
|
||||
for(Map titleM : titleList){
|
||||
String titleContent = (String) titleM.get("field_txt");
|
||||
Cell cell = row.createCell(cindex);
|
||||
RichTextString text = new HSSFRichTextString(titleContent);
|
||||
cell.setCellValue(text);
|
||||
cell.setCellStyle(titleStyle);
|
||||
cindex++;
|
||||
}
|
||||
HSSFCellStyle bodyStyle = getOneStyle(workbook);
|
||||
//遍历内容
|
||||
while (itData.hasNext()) {
|
||||
cindex = 0;
|
||||
rindex++;
|
||||
row = sheet.createRow(rindex);
|
||||
Map dataM = (Map) itData.next();//获取每一行的内容
|
||||
for(Map titleM : titleList){
|
||||
String field = (String) titleM.get("field_name");
|
||||
String content = dataM.get(field)==null?"":dataM.get(field).toString();
|
||||
Cell cell = row.createCell(cindex);
|
||||
RichTextString text = new HSSFRichTextString(content);
|
||||
cell.setCellStyle(bodyStyle);
|
||||
cell.setCellValue(text);
|
||||
cindex++;
|
||||
}
|
||||
}
|
||||
for(int i=0; i<titleList.size(); i++){
|
||||
sheet.autoSizeColumn(i);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return workbook;
|
||||
}
|
||||
/**
|
||||
* exce表头单元格样式处理
|
||||
* @param workbook
|
||||
* @return
|
||||
*/
|
||||
public static HSSFCellStyle getTitleStyle(HSSFWorkbook workbook) {
|
||||
// 产生Excel表头
|
||||
HSSFCellStyle titleStyle = workbook.createCellStyle();
|
||||
titleStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN); // 左边框
|
||||
titleStyle.setBorderRight(HSSFCellStyle.BORDER_THIN); // 右边框
|
||||
titleStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); // 底边框
|
||||
titleStyle.setBorderTop(HSSFCellStyle.BORDER_THIN); // 顶边框
|
||||
titleStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
||||
titleStyle.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index); // 填充的背景颜色
|
||||
titleStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND); // 填充图案
|
||||
|
||||
return titleStyle;
|
||||
}
|
||||
//生成多少行的带有比边框的空行
|
||||
public static void setBlankRows(int rows,int columns,HSSFWorkbook workbook){
|
||||
//得到第一页
|
||||
Sheet sheet = workbook.getSheetAt(0);
|
||||
//样式
|
||||
CellStyle cellStyle = getOneStyle(workbook);
|
||||
for (int i = 1; i <=rows; i++) {
|
||||
Row row = sheet.createRow(i);
|
||||
for (int j = 0; j < columns; j++) {
|
||||
row.createCell(j).setCellStyle(cellStyle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static HSSFCellStyle getTwoStyle(HSSFWorkbook workbook) {
|
||||
// 产生Excel表头
|
||||
HSSFCellStyle style = workbook.createCellStyle();
|
||||
style.setBorderLeft((short) 1); // 左边框
|
||||
style.setBorderRight((short) 1); // 右边框
|
||||
style.setBorderBottom((short) 1);
|
||||
style.setBorderTop((short) 1);
|
||||
style.setFillForegroundColor(HSSFColor.LIGHT_TURQUOISE.index); // 填充的背景颜色
|
||||
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND); // 填充图案
|
||||
return style;
|
||||
}
|
||||
|
||||
public static HSSFCellStyle getOneStyle(HSSFWorkbook workbook) {
|
||||
// 产生Excel表头
|
||||
HSSFCellStyle style = workbook.createCellStyle();
|
||||
style.setBorderLeft((short) 1); // 左边框
|
||||
style.setBorderRight((short) 1); // 右边框
|
||||
style.setBorderBottom((short) 1);
|
||||
style.setBorderTop((short) 1);
|
||||
return style;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package org.jeecgframework.core.enums;
|
||||
|
||||
/**
|
||||
* 许可类型
|
||||
*
|
||||
*/
|
||||
public enum Permission {
|
||||
/**普通权限*/
|
||||
NORMAL("0","默认"),
|
||||
/**跳过认证*/
|
||||
SKIP_AUTH("1","跳过拦截");
|
||||
|
||||
private Permission(String key, String desc) {
|
||||
this.key = key;
|
||||
this.desc = desc;
|
||||
}
|
||||
private String key;
|
||||
private String desc;
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package org.jeecgframework.core.enums;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.jeecgframework.core.util.oConvertUtils;
|
||||
|
||||
/**
|
||||
* 文件上传设置枚举类
|
||||
* @author sundonghui
|
||||
*
|
||||
*/
|
||||
public enum StoreUploadFilePathEnum {
|
||||
PHOTOSUCAI("photosucai", "upload"+File.separator+"img"+File.separator+"photosucai"),
|
||||
DEFAULT("default", "upload"+File.separator+"files");
|
||||
|
||||
private String name;
|
||||
private String path;
|
||||
// 构造方法
|
||||
private StoreUploadFilePathEnum(String name, String path) {
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
//获取路径
|
||||
public static String getPath(String name) {
|
||||
if(oConvertUtils.isNotEmpty(name)){
|
||||
for (StoreUploadFilePathEnum storePath : StoreUploadFilePathEnum.values()) {
|
||||
if (storePath.getName().equals(name)) {
|
||||
return storePath.path;
|
||||
}
|
||||
}
|
||||
}
|
||||
return DEFAULT.path;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package org.jeecgframework.core.enums;
|
||||
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
|
||||
/**
|
||||
* ACE样式类型
|
||||
*
|
||||
* @author zhoujf
|
||||
*/
|
||||
public enum SysACEIconEnum {
|
||||
|
||||
default_icon("default","icon-list-alt", "默认"),
|
||||
back_icon("back","icon-briefcase", "返回"),
|
||||
pie_icon("pie","icon-bar-chart", "小饼状图"),
|
||||
pictures_icon("pictures","icon-picture", "图片"),
|
||||
pencil_icon("pencil","icon-edit", "笔"),
|
||||
map_icon("map","icon-globe", "小地图"),
|
||||
group_add_icon("group_add","icon-group", "组"),
|
||||
calculator_icon("calculator","icon-desktop", "计算器"),
|
||||
folder_icon("folder","icon-list","文件夹");
|
||||
|
||||
|
||||
/**
|
||||
* 风格
|
||||
*/
|
||||
private String style;
|
||||
|
||||
|
||||
/**
|
||||
* 样式
|
||||
*/
|
||||
private String themes;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
private SysACEIconEnum(String style, String themes, String desc) {
|
||||
this.style = style;
|
||||
this.themes = themes;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getStyle() {
|
||||
return style;
|
||||
}
|
||||
|
||||
public void setStyle(String style) {
|
||||
this.style = style;
|
||||
}
|
||||
|
||||
public String getThemes() {
|
||||
return themes;
|
||||
}
|
||||
|
||||
public void setThemes(String themes) {
|
||||
this.themes = themes;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
|
||||
public static SysACEIconEnum toEnum(String style) {
|
||||
if (StringUtil.isEmpty(style)) {
|
||||
//默认风格
|
||||
return default_icon;
|
||||
}
|
||||
for(SysACEIconEnum item : SysACEIconEnum.values()) {
|
||||
if(item.getStyle().equals(style)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
//默认风格
|
||||
return default_icon;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "{style: " + style + ", themes: " + themes + ", desc: " + desc +"}";
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue