From 1e574ae0b890a0cc0193e7289e1be03f33b00e2a Mon Sep 17 00:00:00 2001 From: xfmsoftware <2530079585@qq.com> Date: Wed, 24 Feb 2021 12:16:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86curd+?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 22 +- .../modules/customer/dao/CustCustomerDao.java | 41 ++++ .../modules/customer/entity/CustCustomer.java | 152 ++++++++++++++ .../customer/service/CustCustomerService.java | 99 +++++++++ .../customer/web/CustCustomerController.java | 198 ++++++++++++++++++ .../modules/customer/CustCustomerDao.xml | 175 ++++++++++++++++ .../modules/customer/custCustomerForm.jsp | 105 ++++++++++ .../modules/customer/custCustomerList.jsp | 142 +++++++++++++ 8 files changed, 913 insertions(+), 21 deletions(-) create mode 100644 src/main/java/com/thinkgem/jeesite/modules/customer/dao/CustCustomerDao.java create mode 100644 src/main/java/com/thinkgem/jeesite/modules/customer/entity/CustCustomer.java create mode 100644 src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java create mode 100644 src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java create mode 100644 src/main/resources/mappings/modules/customer/CustCustomerDao.xml create mode 100644 src/main/webapp/WEB-INF/views/modules/customer/custCustomerForm.jsp create mode 100644 src/main/webapp/WEB-INF/views/modules/customer/custCustomerList.jsp diff --git a/pom.xml b/pom.xml index 7783dff9e..7ff42bd9e 100644 --- a/pom.xml +++ b/pom.xml @@ -58,27 +58,7 @@ - - - - jeesite-repos - Jeesite Repository - http://maven.aliyun.com/nexus/content/groups/public - - - - - - - - - jeesite-repos - Jeesite Repository - http://maven.aliyun.com/nexus/content/groups/public - - - - + diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/dao/CustCustomerDao.java b/src/main/java/com/thinkgem/jeesite/modules/customer/dao/CustCustomerDao.java new file mode 100644 index 000000000..807f558b9 --- /dev/null +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/dao/CustCustomerDao.java @@ -0,0 +1,41 @@ +/** + * Copyright © 2012-2016 JeeSite All rights reserved. + */ +package com.thinkgem.jeesite.modules.customer.dao; + +import com.thinkgem.jeesite.common.persistence.CrudDao; +import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao; +import com.thinkgem.jeesite.modules.customer.entity.CustCustomer; +import com.thinkgem.jeesite.modules.sys.entity.User; + +import java.util.List; + +/** + * 客户信息DAO接口 + * @author xfm + * @version 2021-02-22 + */ +@MyBatisDao +public interface CustCustomerDao extends CrudDao { + /** + * 根据客户编号查询客户 + * @param custCustomer + * @return + */ + @Override + int insert(CustCustomer custCustomer); + + /** + * 根据客户编号查询客户 + * @param custCustomer + * @return + */ + CustCustomer getByCustId(CustCustomer custCustomer); + + /** + * 不分页查询全部客户 + * @param custCustomer + * @return + */ + List findAllCustomer(CustCustomer custCustomer); +} \ No newline at end of file diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/entity/CustCustomer.java b/src/main/java/com/thinkgem/jeesite/modules/customer/entity/CustCustomer.java new file mode 100644 index 000000000..1eb0da5de --- /dev/null +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/entity/CustCustomer.java @@ -0,0 +1,152 @@ +/** + * Copyright © 2012-2016 JeeSite All rights reserved. + */ +package com.thinkgem.jeesite.modules.customer.entity; + +import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField; +import org.hibernate.validator.constraints.Length; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; + +import com.thinkgem.jeesite.common.persistence.DataEntity; + +/** + * 客户信息Entity + * @author xfm + * @version 2021-02-22 + */ +public class CustCustomer extends DataEntity { + + private static final long serialVersionUID = 1L; + private String custId; // 客户编号 + private String custName; // 客户名称 + private String busLicenseId; // 营业执照编号 + private String orgId; // 组织机构代码 + private String address; // 地址 + private String contact; // 联系人 + private String tel; // 联系方式 + private String status; // 状态 + private Date registerDate; // 注册时间 + private Date beginRegisterDate; // 开始 注册时间 + private Date endRegisterDate; // 结束 注册时间 + + public CustCustomer() { + super(); + } + + public CustCustomer(String id){ + super(id); + } + + public CustCustomer(String id, String custId) { + super(id); + this.custId = custId; + } + + @Length(min=1, max=64, message="客户编号长度必须介于 1 和 64 之间") + @ExcelField(title="客户编号", align=2, sort=10) + public String getCustId() { + return custId; + } + + public void setCustId(String custId) { + this.custId = custId; + } + + @Length(min=0, max=255, message="客户名称长度必须介于 0 和 255 之间") + @ExcelField(title="客户名称", align=2, sort=20) + public String getCustName() { + return custName; + } + + public void setCustName(String custName) { + this.custName = custName; + } + + @Length(min=0, max=64, message="营业执照编号长度必须介于 0 和 64 之间") + @ExcelField(title="营业执照编号", align=2, sort=30) + public String getBusLicenseId() { + return busLicenseId; + } + + public void setBusLicenseId(String busLicenseId) { + this.busLicenseId = busLicenseId; + } + + @Length(min=0, max=64, message="组织机构代码长度必须介于 0 和 64 之间") + @ExcelField(title="组织机构代码", align=2, sort=40) + public String getOrgId() { + return orgId; + } + + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + @Length(min=0, max=255, message="地址长度必须介于 0 和 255 之间") + @ExcelField(title="地址", align=2, sort=50) + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + @Length(min=0, max=255, message="联系人长度必须介于 0 和 255 之间") + @ExcelField(title="联系人", align=2, sort=60) + public String getContact() { + return contact; + } + + public void setContact(String contact) { + this.contact = contact; + } + + @Length(min=0, max=64, message="联系方式长度必须介于 0 和 64 之间") + @ExcelField(title="联系方式", align=2, sort=70) + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + @Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间") + @ExcelField(title="状态", align=2, sort=80) + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ExcelField(title="注册时间", align=2, sort=90) + public Date getRegisterDate() { + return registerDate; + } + + public void setRegisterDate(Date registerDate) { + this.registerDate = registerDate; + } + + public Date getBeginRegisterDate() { + return beginRegisterDate; + } + + public void setBeginRegisterDate(Date beginRegisterDate) { + this.beginRegisterDate = beginRegisterDate; + } + + public Date getEndRegisterDate() { + return endRegisterDate; + } + + public void setEndRegisterDate(Date endRegisterDate) { + this.endRegisterDate = endRegisterDate; + } + +} \ No newline at end of file diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java b/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java new file mode 100644 index 000000000..d27bd1027 --- /dev/null +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java @@ -0,0 +1,99 @@ +/** + * Copyright © 2012-2016 JeeSite All rights reserved. + */ +package com.thinkgem.jeesite.modules.customer.service; + +import java.util.List; + +import com.thinkgem.jeesite.modules.sys.dao.UserDao; +import com.thinkgem.jeesite.modules.sys.entity.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import com.thinkgem.jeesite.common.persistence.Page; +import com.thinkgem.jeesite.common.service.CrudService; +import com.thinkgem.jeesite.modules.customer.entity.CustCustomer; +import com.thinkgem.jeesite.modules.customer.dao.CustCustomerDao; + +/** + * 客户信息Service + * @author xfm + * @version 2021-02-22 + */ +@Service +@Transactional(readOnly = true) +public class CustCustomerService extends CrudService { + + @Autowired + private CustCustomerDao custCustomerDao; + + public CustCustomer get(String id) { + return super.get(id); + } + + public List findList(CustCustomer custCustomer) { + return super.findList(custCustomer); + } + + public Page findPage(Page page, CustCustomer custCustomer) { + return super.findPage(page, custCustomer); + } + + public Page findCustomer(Page page, CustCustomer custCustomer) { + // 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL) + custCustomer.getSqlMap().put("dsf", dataScopeFilter(custCustomer.getCurrentUser(), "o", "a")); + // 设置分页参数 + custCustomer.setPage(page); + // 执行分页查询 + page.setList(custCustomerDao.findList(custCustomer)); + return page; + } + + @Transactional(readOnly = false) + public void save(CustCustomer custCustomer) { + super.save(custCustomer); + } + + @Transactional(readOnly = false) + public void delete(CustCustomer custCustomer) { + super.delete(custCustomer); + } + + /** + * 无分页查询客户列表 + * @param custCustomer + * @return + */ + public List findAllCustomer(CustCustomer custCustomer){ + // 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL) + custCustomer.getSqlMap().put("dsf", dataScopeFilter(custCustomer.getCurrentUser(), "o", "a")); + return custCustomerDao.findAllCustomer(custCustomer); + } + + /** + * 创建客户模板 + * @return + */ + public CustCustomer makeCustomerTemplate() { + CustCustomer custCustomer = new CustCustomer(); + custCustomer.setCustId("00000001"); + custCustomer.setCustName("南京中信科技股份有限公司"); + custCustomer.setBusLicenseId("000000001"); + custCustomer.setOrgId("00000001"); + custCustomer.setAddress("南京市鼓楼区中山北路"); + custCustomer.setContact("张三"); + custCustomer.setTel("1234567891234"); + custCustomer.setStatus("1"); + return custCustomer; + } + + /** + * 根据客户编号查询客户 + * @param custId + * @return + */ + public CustCustomer getByCustId(String custId) { + return custCustomerDao.getByCustId(new CustCustomer(null, custId)); + } +} \ No newline at end of file diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java b/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java new file mode 100644 index 000000000..766a1f2a6 --- /dev/null +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java @@ -0,0 +1,198 @@ +/** + * Copyright © 2012-2016 JeeSite All rights reserved. + */ +package com.thinkgem.jeesite.modules.customer.web; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.validation.ConstraintViolationException; + +import com.google.common.collect.Lists; +import com.thinkgem.jeesite.common.beanvalidator.BeanValidators; +import com.thinkgem.jeesite.common.utils.DateUtils; +import com.thinkgem.jeesite.common.utils.excel.ExportExcel; +import com.thinkgem.jeesite.common.utils.excel.ImportExcel; +import com.thinkgem.jeesite.modules.sys.entity.User; +import com.thinkgem.jeesite.modules.sys.service.SystemService; +import com.thinkgem.jeesite.modules.sys.utils.UserUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +import com.thinkgem.jeesite.common.config.Global; +import com.thinkgem.jeesite.common.persistence.Page; +import com.thinkgem.jeesite.common.web.BaseController; +import com.thinkgem.jeesite.common.utils.StringUtils; +import com.thinkgem.jeesite.modules.customer.entity.CustCustomer; +import com.thinkgem.jeesite.modules.customer.service.CustCustomerService; + +import java.util.List; + +/** + * 客户信息Controller + * @author xfm + * @version 2021-02-22 + */ +@Controller +@RequestMapping(value = "${adminPath}/customer/custCustomer") +public class CustCustomerController extends BaseController { + + @Autowired + private CustCustomerService custCustomerService; + + @ModelAttribute + public CustCustomer get(@RequestParam(required=false) String id) { + CustCustomer entity = null; + if (StringUtils.isNotBlank(id)){ + entity = custCustomerService.get(id); + } + if (entity == null){ + entity = new CustCustomer(); + } + return entity; + } + + @RequiresPermissions("customer:custCustomer:view") + @RequestMapping(value = {"list", ""}) + public String list(CustCustomer custCustomer, HttpServletRequest request, HttpServletResponse response, Model model) { + Page page = custCustomerService.findPage(new Page(request, response), custCustomer); + model.addAttribute("page", page); + return "modules/customer/custCustomerList"; + } + + @RequiresPermissions("customer:custCustomer:view") + @RequestMapping(value = "form") + public String form(CustCustomer custCustomer, Model model) { + model.addAttribute("custCustomer", custCustomer); + return "modules/customer/custCustomerForm"; + } + + @RequiresPermissions("customer:custCustomer:edit") + @RequestMapping(value = "save") + public String save(CustCustomer custCustomer, Model model, RedirectAttributes redirectAttributes) { + if (!beanValidator(model, custCustomer)){ + return form(custCustomer, model); + } + custCustomerService.save(custCustomer); + addMessage(redirectAttributes, "保存客户信息成功"); + return "redirect:"+Global.getAdminPath()+"/customer/custCustomer/?repage"; + } + + @RequiresPermissions("customer:custCustomer:edit") + @RequestMapping(value = "delete") + public String delete(CustCustomer custCustomer, RedirectAttributes redirectAttributes) { + custCustomerService.delete(custCustomer); + addMessage(redirectAttributes, "删除客户信息成功"); + return "redirect:"+Global.getAdminPath()+"/customer/custCustomer/?repage"; + } + + + /** + * 导出客户数据 + * @param response + * @param redirectAttributes + * @return + */ + @RequiresPermissions("customer:custCustomer:view") + @RequestMapping(value = "export", method=RequestMethod.POST) + public String exportFile(HttpServletResponse response, RedirectAttributes redirectAttributes) { + try { + String fileName = "客户数据"+DateUtils.getDate("yyyyMMddHHmmss")+".xlsx"; + List list = custCustomerService.findAllCustomer(new CustCustomer()); + new ExportExcel("客户数据", CustCustomer.class, 2).setDataList(list).write(response, fileName).dispose(); + return null; + } catch (Exception e) { + addMessage(redirectAttributes, "导出客户失败!失败信息:"+e.getMessage()); + } + return "redirect:" + adminPath + "/customer/custCustomer/list?repage"; + } + + /** + * 导入用户数据 + * @param file + * @param redirectAttributes + * @return + */ + @RequiresPermissions("customer:custCustomer:edit") + @RequestMapping(value = "import", method=RequestMethod.POST) + public String importFile(MultipartFile file, RedirectAttributes redirectAttributes) { + try { + int successNum = 0; + int failureNum = 0; + StringBuilder failureMsg = new StringBuilder(); + ImportExcel ei = new ImportExcel(file, 1, 0); + List list = ei.getDataList(CustCustomer.class); + for (CustCustomer custCustomer : list){ + try{ + if ("true".equals(checkCustId("", custCustomer.getCustId()))){ + custCustomerService.save(custCustomer); + successNum++; + }else{ + failureMsg.append("
登录名 "+custCustomer.getCustId()+" 已存在; "); + failureNum++; + } + }catch(ConstraintViolationException ex){ + failureMsg.append("
登录名 "+custCustomer.getCustId()+" 导入失败:"); + List messageList = BeanValidators.extractPropertyAndMessageAsList(ex, ": "); + for (String message : messageList){ + failureMsg.append(message+"; "); + failureNum++; + } + }catch (Exception ex) { + failureMsg.append("
登录名 "+custCustomer.getCustId()+" 导入失败:"+ex.getMessage()); + } + } + if (failureNum>0){ + failureMsg.insert(0, ",失败 "+failureNum+" 条用户,导入信息如下:"); + } + addMessage(redirectAttributes, "已成功导入 "+successNum+" 条客户"+failureMsg); + } catch (Exception e) { + addMessage(redirectAttributes, "导入客户失败!失败信息:"+e.getMessage()); + } + return "redirect:" + adminPath + "/customer/custCustomer/list?repage"; + } + + /** + * 下载导入用户数据模板 + * @param response + * @param redirectAttributes + * @return + */ + @RequiresPermissions("customer:custCustomer:view") + @RequestMapping(value = "import/template") + public String importFileTemplate(HttpServletResponse response, RedirectAttributes redirectAttributes) { + try { + String fileName = "客户数据导入模板.xlsx"; + List list = Lists.newArrayList(); + list.add(custCustomerService.makeCustomerTemplate()); + new ExportExcel("客户数据", CustCustomer.class, 2).setDataList(list).write(response, fileName).dispose(); + return null; + } catch (Exception e) { + addMessage(redirectAttributes, "导入模板下载失败!失败信息:"+e.getMessage()); + } + return "redirect:" + adminPath + "/customer/custCustomer/list?repage"; + } + + /** + * 验证客户编号是否有效 + * @param oldCustId + * @param custId + * @return + */ + @ResponseBody + @RequiresPermissions("customer:custCustomer:edit") + @RequestMapping(value = "checkCustId") + public String checkCustId(String oldCustId, String custId) { + if (custId !=null && custId.equals(oldCustId)) { + return "true"; + } else if (custId !=null && custCustomerService.getByCustId(custId) == null) { + return "true"; + } + return "false"; + } + +} \ No newline at end of file diff --git a/src/main/resources/mappings/modules/customer/CustCustomerDao.xml b/src/main/resources/mappings/modules/customer/CustCustomerDao.xml new file mode 100644 index 000000000..2bf34b718 --- /dev/null +++ b/src/main/resources/mappings/modules/customer/CustCustomerDao.xml @@ -0,0 +1,175 @@ + + + + + + a.id AS "id", + a.cust_id AS "custId", + a.cust_name AS "custName", + a.bus_license_id AS "busLicenseId", + a.org_id AS "orgId", + a.address AS "address", + a.contact AS "contact", + a.tel AS "tel", + a.status AS "status", + a.register_date AS "registerDate", + a.create_by AS "createBy.id", + a.create_date AS "createDate", + a.update_by AS "updateBy.id", + a.update_date AS "updateDate", + a.remarks AS "remarks", + a.del_flag AS "delFlag" + + + + + + + + + + + + + INSERT INTO cust_customer( + id, + cust_id, + cust_name, + bus_license_id, + org_id, + address, + contact, + tel, + status, + register_date, + create_by, + create_date, + update_by, + update_date, + remarks, + del_flag + ) VALUES ( + #{id}, + #{custId}, + #{custName}, + #{busLicenseId}, + #{orgId}, + #{address}, + #{contact}, + #{tel}, + #{status}, + #{registerDate}, + #{createBy.id}, + #{createDate}, + #{updateBy.id}, + #{updateDate}, + #{remarks}, + #{delFlag} + ) + + + + UPDATE cust_customer SET + cust_id = #{custId}, + cust_name = #{custName}, + bus_license_id = #{busLicenseId}, + org_id = #{orgId}, + address = #{address}, + contact = #{contact}, + tel = #{tel}, + status = #{status}, + register_date = #{registerDate}, + update_by = #{updateBy.id}, + update_date = #{updateDate}, + remarks = #{remarks} + WHERE id = #{id} + + + + UPDATE cust_customer SET + del_flag = #{DEL_FLAG_DELETE} + WHERE id = #{id} + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/modules/customer/custCustomerForm.jsp b/src/main/webapp/WEB-INF/views/modules/customer/custCustomerForm.jsp new file mode 100644 index 000000000..dce6a9273 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/modules/customer/custCustomerForm.jsp @@ -0,0 +1,105 @@ +<%@ page contentType="text/html;charset=UTF-8" %> +<%@ include file="/WEB-INF/views/include/taglib.jsp"%> + + + 客户信息管理 + + + + +
+ + + +
+ +
+ + *客户编号为必填项 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ " + onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> +
+
+
+ +
+ +
+
+
+   + +
+
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/modules/customer/custCustomerList.jsp b/src/main/webapp/WEB-INF/views/modules/customer/custCustomerList.jsp new file mode 100644 index 000000000..6a8be5161 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/modules/customer/custCustomerList.jsp @@ -0,0 +1,142 @@ +<%@ page contentType="text/html;charset=UTF-8" %> +<%@ include file="/WEB-INF/views/include/taglib.jsp"%> + + + 客户信息管理 + + + + +
+ +
+ + + + +
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + " + onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> - + " + onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> +
  • +
  • + + +
  • +
  • +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
客户编号客户名称营业执照编号组织机构代码地址联系人联系方式状态注册时间备注信息操作
+ ${custCustomer.custId} + + ${custCustomer.custName} + + ${custCustomer.busLicenseId} + + ${custCustomer.orgId} + + ${custCustomer.address} + + ${custCustomer.contact} + + ${custCustomer.tel} + + ${fns:getDictLabel(custCustomer.status, 'status', '')} + + + + ${custCustomer.remarks} + + 修改 + 删除 +
+ + + \ No newline at end of file -- Gitee From 6ffa58ab887f02c116f3560e02a9b56bcbc4d8a7 Mon Sep 17 00:00:00 2001 From: xfmsoftware <2530079585@qq.com> Date: Wed, 24 Feb 2021 12:24:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=97=A0=E7=94=A8import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeesite/modules/customer/service/CustCustomerService.java | 2 -- .../jeesite/modules/customer/web/CustCustomerController.java | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java b/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java index d27bd1027..a647feae3 100644 --- a/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/service/CustCustomerService.java @@ -5,8 +5,6 @@ package com.thinkgem.jeesite.modules.customer.service; import java.util.List; -import com.thinkgem.jeesite.modules.sys.dao.UserDao; -import com.thinkgem.jeesite.modules.sys.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java b/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java index 766a1f2a6..767a70adb 100644 --- a/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java +++ b/src/main/java/com/thinkgem/jeesite/modules/customer/web/CustCustomerController.java @@ -12,9 +12,6 @@ import com.thinkgem.jeesite.common.beanvalidator.BeanValidators; import com.thinkgem.jeesite.common.utils.DateUtils; import com.thinkgem.jeesite.common.utils.excel.ExportExcel; import com.thinkgem.jeesite.common.utils.excel.ImportExcel; -import com.thinkgem.jeesite.modules.sys.entity.User; -import com.thinkgem.jeesite.modules.sys.service.SystemService; -import com.thinkgem.jeesite.modules.sys.utils.UserUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; -- Gitee