From 465112e62654f8db099c5da93928992d00230ce9 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Mon, 11 Mar 2024 16:28:36 +0800 Subject: [PATCH] '123' --- .../sapCustomer/SapCustomerController.java | 106 ++ .../controller/system/SsoLoginController.java | 4 +- .../web/{Utils => utils}/DataDBUtils.java | 0 .../com/ruoyi/web/utils/DateRangeUtils.java | 62 + .../java/com/ruoyi/web/utils/IdUtils.java | 73 + .../com/ruoyi/web/{Utils => utils}/SHA1.java | 2 +- .../web/{Utils => utils}/batchInsert.java | 0 .../webservice/contract/DTOASDHTCXREQ.java | 222 +++ .../webservice/contract/DTOASDHTCXRESP.java | 1221 +++++++++++++++++ .../webservice/contract/ObjectFactory.java | 79 ++ .../webservice/contract/SIOASDHTCXOUT.java | 38 + .../contract/SIOASDHTCXOUTService.java | 136 ++ .../webservice/contract/contractUtils.java | 78 ++ .../web/webservice/contract/package-info.java | 2 + ruoyi-admin/src/main/resources/common.yml | 8 + .../com/ruoyi/common/enums/BusinessType.java | 9 +- .../com/ruoyi/contract/domain/Contract.java | 104 ++ .../ruoyi/sapAccount/domain/SapAccount.java | 46 +- .../ruoyi/sapCustomer/domain/SapCustomer.java | 98 ++ .../sapCustomer/mapper/SapCustomerMapper.java | 62 + .../service/ISapCustomerService.java | 62 + .../service/impl/SapCustomerServiceImpl.java | 94 ++ .../mapper/sapAccount/SapAccountMapper.xml | 22 +- .../mapper/sapCustomer/SapCustomerMapper.xml | 71 + ruoyi-ui/src/api/sapCustomer/sapCustomer.js | 44 + ruoyi-ui/src/utils/date.js | 12 + .../src/views/sapAccount/sapAccount/index.vue | 87 +- .../views/sapCustomer/sapCustomer/index.vue | 305 ++++ 28 files changed, 2936 insertions(+), 111 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/sapCustomer/SapCustomerController.java rename ruoyi-admin/src/main/java/com/ruoyi/web/{Utils => utils}/DataDBUtils.java (100%) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/utils/DateRangeUtils.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/utils/IdUtils.java rename ruoyi-admin/src/main/java/com/ruoyi/web/{Utils => utils}/SHA1.java (97%) rename ruoyi-admin/src/main/java/com/ruoyi/web/{Utils => utils}/batchInsert.java (100%) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/DTOASDHTCXREQ.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/DTOASDHTCXRESP.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/ObjectFactory.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUT.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUTService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/contractUtils.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/package-info.java create mode 100644 ruoyi-admin/src/main/resources/common.yml create mode 100644 ruoyi-system/src/main/java/com/ruoyi/contract/domain/Contract.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/sapCustomer/domain/SapCustomer.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/sapCustomer/mapper/SapCustomerMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/ISapCustomerService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/impl/SapCustomerServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/sapCustomer/SapCustomerMapper.xml create mode 100644 ruoyi-ui/src/api/sapCustomer/sapCustomer.js create mode 100644 ruoyi-ui/src/utils/date.js create mode 100644 ruoyi-ui/src/views/sapCustomer/sapCustomer/index.vue diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sapCustomer/SapCustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sapCustomer/SapCustomerController.java new file mode 100644 index 0000000..56bed3e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sapCustomer/SapCustomerController.java @@ -0,0 +1,106 @@ +package com.ruoyi.web.controller.sapCustomer; + +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.sapCustomer.domain.SapCustomer; +import com.ruoyi.sapCustomer.service.ISapCustomerService; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.core.page.TableDataInfo; + +import java.util.List; + +/** + * 客户管理Controller + * + * @author ruoyi + * @date 2024-03-11 + */ +@RestController +@RequestMapping("/sapCustomer/sapCustomer") +public class SapCustomerController extends BaseController +{ + @Autowired + private ISapCustomerService sapCustomerService; + + /** + * 查询客户管理列表 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:list')") + @GetMapping("/list") + public TableDataInfo list(SapCustomer sapCustomer) + { + startPage(); + List list = sapCustomerService.selectSapCustomerList(sapCustomer); + return getDataTable(list); + } + + /** + * 导出客户管理列表 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:export')") + @Log(title = "客户管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SapCustomer sapCustomer) + { + List list = sapCustomerService.selectSapCustomerList(sapCustomer); + ExcelUtil util = new ExcelUtil(SapCustomer.class); + util.exportExcel(response, list, "客户管理数据"); + } + + /** + * 获取客户管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:query')") + @GetMapping(value = "/{customerId}") + public AjaxResult getInfo(@PathVariable("customerId") Long customerId) + { + return success(sapCustomerService.selectSapCustomerByCustomerId(customerId)); + } + + /** + * 新增客户管理 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:add')") + @Log(title = "客户管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SapCustomer sapCustomer) + { + return toAjax(sapCustomerService.insertSapCustomer(sapCustomer)); + } + + /** + * 修改客户管理 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:edit')") + @Log(title = "客户管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SapCustomer sapCustomer) + { + return toAjax(sapCustomerService.updateSapCustomer(sapCustomer)); + } + + /** + * 删除客户管理 + */ + @PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:remove')") + @Log(title = "客户管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{customerIds}") + public AjaxResult remove(@PathVariable Long[] customerIds) + { + return toAjax(sapCustomerService.deleteSapCustomerByCustomerIds(customerIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SsoLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SsoLoginController.java index 2293503..8ff75bc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SsoLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SsoLoginController.java @@ -14,7 +14,7 @@ import com.ruoyi.common.constant.Constants; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.model.NoPswLoginBody; import com.ruoyi.framework.web.service.SsoLoginService; -import com.ruoyi.web.Utils.SHA1; +import com.ruoyi.web.utils.SHA1; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -22,8 +22,6 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; -import java.security.MessageDigest; - /** * 第三方登录验证 * diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/Utils/DataDBUtils.java b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/DataDBUtils.java similarity index 100% rename from ruoyi-admin/src/main/java/com/ruoyi/web/Utils/DataDBUtils.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/utils/DataDBUtils.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/utils/DateRangeUtils.java b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/DateRangeUtils.java new file mode 100644 index 0000000..0446e06 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/DateRangeUtils.java @@ -0,0 +1,62 @@ +package com.ruoyi.web.utils; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; + +public class DateRangeUtils { + /** + * 校验时间是否在指定范围内 + * @param checkDate + * @return + * @throws ParseException + */ + public static Boolean checkDateRange(String checkDate, String dataBeginAm, String dataEndAm, String dataBeginPm, String dataEndPm) throws ParseException { + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date today = sdf.parse(checkDate); + SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");//设置日期格式 + + Date nowTime =df.parse(df.format(today)); + //上午的规定时间 + Date amBeginTime = df.parse(dataBeginAm); + Date amEndTime = df.parse(dataEndAm); + //下午的规定时间 + Date pmBeginTime = df.parse(dataBeginPm); + Date pmEndTime = df.parse(dataEndPm); + + //调用判断方法是否在规定时间段内 + boolean isTime = timeCalendar(nowTime, amBeginTime, amEndTime,pmBeginTime,pmEndTime); + + if(isTime){ + //处于规定的时间段内 + System.out.println(isTime); + }else{ + //不处于规定的时间段内 + System.out.println(isTime); + } + return isTime; + } + + public static boolean timeCalendar(Date nowTime, Date amBeginTime, Date amEndTime, Date pmBeginTime, Date pmEndTime) { + //设置当前时间 + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + //设置开始时间 + Calendar amBegin = Calendar.getInstance(); + amBegin.setTime(amBeginTime);//上午开始时间 + Calendar pmBegin = Calendar.getInstance(); + pmBegin.setTime(pmBeginTime);//下午开始时间 + //设置结束时间 + Calendar amEnd = Calendar.getInstance(); + amEnd.setTime(amEndTime);//上午结束时间 + Calendar pmEnd = Calendar.getInstance(); + pmEnd.setTime(pmEndTime);//下午结束时间 + //处于开始时间之后,和结束时间之前的判断 + if ((date.after(amBegin) && date.before(amEnd)) || (date.after(pmBegin) && date.before(pmEnd))) { + return true; + } else { + return false; + } + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/utils/IdUtils.java b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/IdUtils.java new file mode 100644 index 0000000..467d55a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/utils/IdUtils.java @@ -0,0 +1,73 @@ +package com.ruoyi.web.utils; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Random; + +public class IdUtils { + /** + * 生成永不重复的订单号 + * @param startLetter 订单号开头字符串 + * @param size 订单号中随机的大写字母个数 + * @return + */ + public static String createOrderNo(String startLetter,int size){ + + String orderNo = null; + + Date nowDate = new Date(); + + Random random = new Random(); + + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); + + //生成两位大写字母 + String keyArr = randomLetter(size); + + String fourRandom = random.nextInt(9999) + ""; + + int randLength = fourRandom.length(); + + //四位随机数,不足四位的补0 + if(fourRandom.length()<4){//不足四位的随机数补充0 + for(int i=1; i<=4-randLength; i++){ + fourRandom = '0' + fourRandom; + } + } + + orderNo=startLetter+keyArr+sdf.format(nowDate)+fourRandom; + + return orderNo; + } + + /** + * 生成大写字母 + * @param size + * @return + */ + public static String randomLetter(int size){ + String keyArr= ""; + char key = 0; + boolean[] flag=new boolean[26]; //定义一个Boolean型数组,用来除去重复值 + for(int i=0;iDT_OASD_HTCX_REQ complex type�� Java �ࡣ + * + *

����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ� + * + *

+ * <complexType name="DT_OASD_HTCX_REQ">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ZUSER" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="HTQDRQ_S" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="HTQDRQ_E" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="KUNNR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="HTBH2" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ZYWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="KBK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DT_OASD_HTCX_REQ") +public class DTOASDHTCXREQ { + + @XmlAttribute(name = "ZUSER") + protected String zuser; + @XmlAttribute(name = "HTQDRQ_S") + protected String htqdrqs; + @XmlAttribute(name = "HTQDRQ_E") + protected String htqdrqe; + @XmlAttribute(name = "KUNNR") + protected String kunnr; + @XmlAttribute(name = "HTBH2") + protected String htbh2; + @XmlAttribute(name = "ZYWY") + protected String zywy; + @XmlAttribute(name = "KBK") + protected String kbk; + + /** + * ��ȡzuser���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZUSER() { + return zuser; + } + + /** + * ����zuser���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZUSER(String value) { + this.zuser = value; + } + + /** + * ��ȡhtqdrqs���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTQDRQS() { + return htqdrqs; + } + + /** + * ����htqdrqs���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTQDRQS(String value) { + this.htqdrqs = value; + } + + /** + * ��ȡhtqdrqe���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTQDRQE() { + return htqdrqe; + } + + /** + * ����htqdrqe���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTQDRQE(String value) { + this.htqdrqe = value; + } + + /** + * ��ȡkunnr���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getKUNNR() { + return kunnr; + } + + /** + * ����kunnr���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKUNNR(String value) { + this.kunnr = value; + } + + /** + * ��ȡhtbh2���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTBH2() { + return htbh2; + } + + /** + * ����htbh2���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTBH2(String value) { + this.htbh2 = value; + } + + /** + * ��ȡzywy���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZYWY() { + return zywy; + } + + /** + * ����zywy���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZYWY(String value) { + this.zywy = value; + } + + /** + * ��ȡkbk���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getKBK() { + return kbk; + } + + /** + * ����kbk���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKBK(String value) { + this.kbk = value; + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/DTOASDHTCXRESP.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/DTOASDHTCXRESP.java new file mode 100644 index 0000000..68cefdf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/DTOASDHTCXRESP.java @@ -0,0 +1,1221 @@ + +package com.ruoyi.web.webservice.contract; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * ��ͬ��ѯ + * + *

DT_OASD_HTCX_RESP complex type�� Java �ࡣ + * + *

����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ� + * + *

+ * <complexType name="DT_OASD_HTCX_RESP">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="HTDATA" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="HTBH2" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTLB" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDZHTH" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="HTQDRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYWYMS" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDNAME" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTGZRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDBZ02" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="XM" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="HTZE" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTJE" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDXDJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="TJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDCDBM" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDFHBZ01" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDFHJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYDZ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDFHQWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYFKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDDHKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTZFKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTZT" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDFHJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDKPJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDBLXTS" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZZJHQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDHTDQZT" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZFINISH" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZFHRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="KBK" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYWLXBM" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDYWLXMS" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZSDKUNNR" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="PRSDT" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="VKORG" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="VTWEG" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="ISTAT" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="MESSAGE" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DT_OASD_HTCX_RESP", propOrder = { + "htdata" +}) +public class DTOASDHTCXRESP { + + @XmlElement(name = "HTDATA") + protected List htdata; + @XmlAttribute(name = "ISTAT") + protected String istat; + @XmlAttribute(name = "MESSAGE") + protected String message; + + /** + * Gets the value of the htdata property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the htdata property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getHTDATA().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link HTDATA } + * + * + */ + public List getHTDATA() { + if (htdata == null) { + htdata = new ArrayList(); + } + return this.htdata; + } + + /** + * ��ȡistat���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getISTAT() { + return istat; + } + + /** + * ����istat���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setISTAT(String value) { + this.istat = value; + } + + /** + * ��ȡmessage���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getMESSAGE() { + return message; + } + + /** + * ����message���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMESSAGE(String value) { + this.message = value; + } + + + /** + *

anonymous complex type�� Java �ࡣ + * + *

����ģʽƬ��ָ�������ڴ����е�Ԥ�����ݡ� + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="HTBH2" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTLB" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDZHTH" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="HTQDRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYWYMS" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDNAME" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTGZRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDBZ02" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="XM" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="HTZE" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTJE" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDXDJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="TJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDCDBM" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDFHBZ01" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDFHJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYJEHTJ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYDZ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDFHQWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYFKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDDHKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTZFKWY" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTZT" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDFHJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDKPJEQK" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDBLXTS" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZZJHQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDHTDQZT" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZFINISH" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZFHRQ" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="KBK" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYWLXBM" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDYWLXMS" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ZSDKUNNR" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="PRSDT" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="VKORG" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="VTWEG" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class HTDATA { + + @XmlAttribute(name = "HTBH2") + protected String htbh2; + @XmlAttribute(name = "ZSDHTLB") + protected String zsdhtlb; + @XmlAttribute(name = "ZSDZHTH") + protected String zsdzhth; + @XmlAttribute(name = "HTQDRQ") + protected String htqdrq; + @XmlAttribute(name = "ZSDYWYMS") + protected String zsdywyms; + @XmlAttribute(name = "ZSDNAME") + protected String zsdname; + @XmlAttribute(name = "ZSDHTGZRQ") + protected String zsdhtgzrq; + @XmlAttribute(name = "ZSDBZ02") + protected String zsdbz02; + @XmlAttribute(name = "XM") + protected String xm; + @XmlAttribute(name = "HTZE") + protected String htze; + @XmlAttribute(name = "ZSDHTJE") + protected String zsdhtje; + @XmlAttribute(name = "ZSDXDJEHTJ") + protected String zsdxdjehtj; + @XmlAttribute(name = "TJ") + protected String tj; + @XmlAttribute(name = "ZSDCDBM") + protected String zsdcdbm; + @XmlAttribute(name = "ZSDFHBZ01") + protected String zsdfhbz01; + @XmlAttribute(name = "ZSDFHJEHTJ") + protected String zsdfhjehtj; + @XmlAttribute(name = "ZSDYJEHTJ") + protected String zsdyjehtj; + @XmlAttribute(name = "ZSDYDZ") + protected String zsdydz; + @XmlAttribute(name = "ZSDFHQWY") + protected String zsdfhqwy; + @XmlAttribute(name = "ZSDYFKWY") + protected String zsdyfkwy; + @XmlAttribute(name = "ZSDDHKWY") + protected String zsddhkwy; + @XmlAttribute(name = "ZSDHTZFKWY") + protected String zsdhtzfkwy; + @XmlAttribute(name = "ZSDHTZT") + protected String zsdhtzt; + @XmlAttribute(name = "ZSDHTJEQK") + protected String zsdhtjeqk; + @XmlAttribute(name = "ZSDFHJEQK") + protected String zsdfhjeqk; + @XmlAttribute(name = "ZSDKPJEQK") + protected String zsdkpjeqk; + @XmlAttribute(name = "ZSDBLXTS") + protected String zsdblxts; + @XmlAttribute(name = "ZZJHQ") + protected String zzjhq; + @XmlAttribute(name = "ZSDHTDQZT") + protected String zsdhtdqzt; + @XmlAttribute(name = "ZFINISH") + protected String zfinish; + @XmlAttribute(name = "ZFHRQ") + protected String zfhrq; + @XmlAttribute(name = "KBK") + protected String kbk; + @XmlAttribute(name = "ZSDYWLXBM") + protected String zsdywlxbm; + @XmlAttribute(name = "ZSDYWLXMS") + protected String zsdywlxms; + @XmlAttribute(name = "ZSDKUNNR") + protected String zsdkunnr; + @XmlAttribute(name = "PRSDT") + protected String prsdt; + @XmlAttribute(name = "VKORG") + protected String vkorg; + @XmlAttribute(name = "VTWEG") + protected String vtweg; + + /** + * ��ȡhtbh2���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTBH2() { + return htbh2; + } + + /** + * ����htbh2���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTBH2(String value) { + this.htbh2 = value; + } + + /** + * ��ȡzsdhtlb���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTLB() { + return zsdhtlb; + } + + /** + * ����zsdhtlb���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTLB(String value) { + this.zsdhtlb = value; + } + + /** + * ��ȡzsdzhth���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDZHTH() { + return zsdzhth; + } + + /** + * ����zsdzhth���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDZHTH(String value) { + this.zsdzhth = value; + } + + /** + * ��ȡhtqdrq���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTQDRQ() { + return htqdrq; + } + + /** + * ����htqdrq���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTQDRQ(String value) { + this.htqdrq = value; + } + + /** + * ��ȡzsdywyms���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYWYMS() { + return zsdywyms; + } + + /** + * ����zsdywyms���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYWYMS(String value) { + this.zsdywyms = value; + } + + /** + * ��ȡzsdname���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDNAME() { + return zsdname; + } + + /** + * ����zsdname���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDNAME(String value) { + this.zsdname = value; + } + + /** + * ��ȡzsdhtgzrq���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTGZRQ() { + return zsdhtgzrq; + } + + /** + * ����zsdhtgzrq���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTGZRQ(String value) { + this.zsdhtgzrq = value; + } + + /** + * ��ȡzsdbz02���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDBZ02() { + return zsdbz02; + } + + /** + * ����zsdbz02���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDBZ02(String value) { + this.zsdbz02 = value; + } + + /** + * ��ȡxm���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getXM() { + return xm; + } + + /** + * ����xm���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXM(String value) { + this.xm = value; + } + + /** + * ��ȡhtze���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getHTZE() { + return htze; + } + + /** + * ����htze���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHTZE(String value) { + this.htze = value; + } + + /** + * ��ȡzsdhtje���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTJE() { + return zsdhtje; + } + + /** + * ����zsdhtje���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTJE(String value) { + this.zsdhtje = value; + } + + /** + * ��ȡzsdxdjehtj���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDXDJEHTJ() { + return zsdxdjehtj; + } + + /** + * ����zsdxdjehtj���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDXDJEHTJ(String value) { + this.zsdxdjehtj = value; + } + + /** + * ��ȡtj���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getTJ() { + return tj; + } + + /** + * ����tj���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTJ(String value) { + this.tj = value; + } + + /** + * ��ȡzsdcdbm���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDCDBM() { + return zsdcdbm; + } + + /** + * ����zsdcdbm���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDCDBM(String value) { + this.zsdcdbm = value; + } + + /** + * ��ȡzsdfhbz01���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDFHBZ01() { + return zsdfhbz01; + } + + /** + * ����zsdfhbz01���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDFHBZ01(String value) { + this.zsdfhbz01 = value; + } + + /** + * ��ȡzsdfhjehtj���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDFHJEHTJ() { + return zsdfhjehtj; + } + + /** + * ����zsdfhjehtj���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDFHJEHTJ(String value) { + this.zsdfhjehtj = value; + } + + /** + * ��ȡzsdyjehtj���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYJEHTJ() { + return zsdyjehtj; + } + + /** + * ����zsdyjehtj���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYJEHTJ(String value) { + this.zsdyjehtj = value; + } + + /** + * ��ȡzsdydz���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYDZ() { + return zsdydz; + } + + /** + * ����zsdydz���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYDZ(String value) { + this.zsdydz = value; + } + + /** + * ��ȡzsdfhqwy���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDFHQWY() { + return zsdfhqwy; + } + + /** + * ����zsdfhqwy���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDFHQWY(String value) { + this.zsdfhqwy = value; + } + + /** + * ��ȡzsdyfkwy���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYFKWY() { + return zsdyfkwy; + } + + /** + * ����zsdyfkwy���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYFKWY(String value) { + this.zsdyfkwy = value; + } + + /** + * ��ȡzsddhkwy���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDDHKWY() { + return zsddhkwy; + } + + /** + * ����zsddhkwy���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDDHKWY(String value) { + this.zsddhkwy = value; + } + + /** + * ��ȡzsdhtzfkwy���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTZFKWY() { + return zsdhtzfkwy; + } + + /** + * ����zsdhtzfkwy���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTZFKWY(String value) { + this.zsdhtzfkwy = value; + } + + /** + * ��ȡzsdhtzt���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTZT() { + return zsdhtzt; + } + + /** + * ����zsdhtzt���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTZT(String value) { + this.zsdhtzt = value; + } + + /** + * ��ȡzsdhtjeqk���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTJEQK() { + return zsdhtjeqk; + } + + /** + * ����zsdhtjeqk���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTJEQK(String value) { + this.zsdhtjeqk = value; + } + + /** + * ��ȡzsdfhjeqk���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDFHJEQK() { + return zsdfhjeqk; + } + + /** + * ����zsdfhjeqk���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDFHJEQK(String value) { + this.zsdfhjeqk = value; + } + + /** + * ��ȡzsdkpjeqk���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDKPJEQK() { + return zsdkpjeqk; + } + + /** + * ����zsdkpjeqk���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDKPJEQK(String value) { + this.zsdkpjeqk = value; + } + + /** + * ��ȡzsdblxts���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDBLXTS() { + return zsdblxts; + } + + /** + * ����zsdblxts���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDBLXTS(String value) { + this.zsdblxts = value; + } + + /** + * ��ȡzzjhq���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZZJHQ() { + return zzjhq; + } + + /** + * ����zzjhq���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZZJHQ(String value) { + this.zzjhq = value; + } + + /** + * ��ȡzsdhtdqzt���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDHTDQZT() { + return zsdhtdqzt; + } + + /** + * ����zsdhtdqzt���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDHTDQZT(String value) { + this.zsdhtdqzt = value; + } + + /** + * ��ȡzfinish���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZFINISH() { + return zfinish; + } + + /** + * ����zfinish���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZFINISH(String value) { + this.zfinish = value; + } + + /** + * ��ȡzfhrq���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZFHRQ() { + return zfhrq; + } + + /** + * ����zfhrq���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZFHRQ(String value) { + this.zfhrq = value; + } + + /** + * ��ȡkbk���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getKBK() { + return kbk; + } + + /** + * ����kbk���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKBK(String value) { + this.kbk = value; + } + + /** + * ��ȡzsdywlxbm���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYWLXBM() { + return zsdywlxbm; + } + + /** + * ����zsdywlxbm���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYWLXBM(String value) { + this.zsdywlxbm = value; + } + + /** + * ��ȡzsdywlxms���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDYWLXMS() { + return zsdywlxms; + } + + /** + * ����zsdywlxms���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDYWLXMS(String value) { + this.zsdywlxms = value; + } + + /** + * ��ȡzsdkunnr���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getZSDKUNNR() { + return zsdkunnr; + } + + /** + * ����zsdkunnr���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setZSDKUNNR(String value) { + this.zsdkunnr = value; + } + + /** + * ��ȡprsdt���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getPRSDT() { + return prsdt; + } + + /** + * ����prsdt���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPRSDT(String value) { + this.prsdt = value; + } + + /** + * ��ȡvkorg���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getVKORG() { + return vkorg; + } + + /** + * ����vkorg���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVKORG(String value) { + this.vkorg = value; + } + + /** + * ��ȡvtweg���Ե�ֵ�� + * + * @return + * possible object is + * {@link String } + * + */ + public String getVTWEG() { + return vtweg; + } + + /** + * ����vtweg���Ե�ֵ�� + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVTWEG(String value) { + this.vtweg = value; + } + + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/ObjectFactory.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/ObjectFactory.java new file mode 100644 index 0000000..db90878 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/ObjectFactory.java @@ -0,0 +1,79 @@ + +package com.ruoyi.web.webservice.contract; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.jncable.sd.htcx package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _MTOASDHTCXREQ_QNAME = new QName("http://jncable.com/SD/HTCX", "MT_OASD_HTCX_REQ"); + private final static QName _MTOASDHTCXRESP_QNAME = new QName("http://jncable.com/SD/HTCX", "MT_OASD_HTCX_RESP"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.jncable.sd.htcx + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DTOASDHTCXRESP } + * + */ + public DTOASDHTCXRESP createDTOASDHTCXRESP() { + return new DTOASDHTCXRESP(); + } + + /** + * Create an instance of {@link DTOASDHTCXREQ } + * + */ + public DTOASDHTCXREQ createDTOASDHTCXREQ() { + return new DTOASDHTCXREQ(); + } + + /** + * Create an instance of {@link DTOASDHTCXRESP.HTDATA } + * + */ + public DTOASDHTCXRESP.HTDATA createDTOASDHTCXRESPHTDATA() { + return new DTOASDHTCXRESP.HTDATA(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DTOASDHTCXREQ }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://jncable.com/SD/HTCX", name = "MT_OASD_HTCX_REQ") + public JAXBElement createMTOASDHTCXREQ(DTOASDHTCXREQ value) { + return new JAXBElement(_MTOASDHTCXREQ_QNAME, DTOASDHTCXREQ.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DTOASDHTCXRESP }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://jncable.com/SD/HTCX", name = "MT_OASD_HTCX_RESP") + public JAXBElement createMTOASDHTCXRESP(DTOASDHTCXRESP value) { + return new JAXBElement(_MTOASDHTCXRESP_QNAME, DTOASDHTCXRESP.class, null, value); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUT.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUT.java new file mode 100644 index 0000000..119a523 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUT.java @@ -0,0 +1,38 @@ + +package com.ruoyi.web.webservice.contract; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.2 + * + */ +@WebService(name = "SI_OASD_HTCX_OUT", targetNamespace = "http://jncable.com/SD/HTCX") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface SIOASDHTCXOUT { + + + /** + * + * @param mtOASDHTCXREQ + * @return + * returns com.jncable.sd.htcx.DTOASDHTCXRESP + */ + @WebMethod(operationName = "SI_OASD_HTCX_OUT", action = "http://sap.com/xi/WebService/soap1.1") + @WebResult(name = "MT_OASD_HTCX_RESP", targetNamespace = "http://jncable.com/SD/HTCX", partName = "MT_OASD_HTCX_RESP") + public DTOASDHTCXRESP siOASDHTCXOUT( + @WebParam(name = "MT_OASD_HTCX_REQ", targetNamespace = "http://jncable.com/SD/HTCX", partName = "MT_OASD_HTCX_REQ") + DTOASDHTCXREQ mtOASDHTCXREQ); + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUTService.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUTService.java new file mode 100644 index 0000000..70e155a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/SIOASDHTCXOUTService.java @@ -0,0 +1,136 @@ + +package com.ruoyi.web.webservice.contract; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; +import org.springframework.stereotype.Component; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "SI_OASD_HTCX_OUTService", targetNamespace = "http://jncable.com/SD/HTCX", wsdlLocation = "http://poprd:50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995") +public class SIOASDHTCXOUTService + extends Service +{ + private static URL SIOASDHTCXOUTSERVICE_WSDL_LOCATION; + private static WebServiceException SIOASDHTCXOUTSERVICE_EXCEPTION; + private static QName SIOASDHTCXOUTSERVICE_QNAME = new QName("http://jncable.com/SD/HTCX", "SI_OASD_HTCX_OUTService"); + + /** + * 赋值host + * @param host + */ + /*static { + URL url = null; + WebServiceException e = null; + try { + System.out.println(getHost()); + url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url; + SIOASDHTCXOUTSERVICE_EXCEPTION = e; + }*/ + public void setHost(String host) { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url; + SIOASDHTCXOUTSERVICE_EXCEPTION = e; + } + + public SIOASDHTCXOUTService() { + super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME); + } + + public SIOASDHTCXOUTService(WebServiceFeature... features) { + super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME, features); + } + + public SIOASDHTCXOUTService(URL wsdlLocation) { + super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME); + } + + public SIOASDHTCXOUTService(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME, features); + } + + public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns SIOASDHTCXOUT + */ + @WebEndpoint(name = "HTTP_Port") + public SIOASDHTCXOUT getHTTPPort() { + return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class); + } + + /** + * + * @param features + * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns SIOASDHTCXOUT + */ + @WebEndpoint(name = "HTTP_Port") + public SIOASDHTCXOUT getHTTPPort(WebServiceFeature... features) { + return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class, features); + } + + /** + * + * @return + * returns SIOASDHTCXOUT + */ + @WebEndpoint(name = "HTTPS_Port") + public SIOASDHTCXOUT getHTTPSPort() { + return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class); + } + + /** + * + * @param features + * A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns SIOASDHTCXOUT + */ + @WebEndpoint(name = "HTTPS_Port") + public SIOASDHTCXOUT getHTTPSPort(WebServiceFeature... features) { + return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class, features); + } + + private static URL __getWsdlLocation() { + if (SIOASDHTCXOUTSERVICE_EXCEPTION!= null) { + throw SIOASDHTCXOUTSERVICE_EXCEPTION; + } + return SIOASDHTCXOUTSERVICE_WSDL_LOCATION; + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/contractUtils.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/contractUtils.java new file mode 100644 index 0000000..e724857 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/contractUtils.java @@ -0,0 +1,78 @@ +package com.ruoyi.web.webservice.contract; + +import com.ruoyi.contract.domain.Contract; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.PropertySource; +import org.springframework.stereotype.Component; + +import java.net.Authenticator; +import java.net.PasswordAuthentication; +import java.util.List; + +@Component +@PropertySource("classpath:/common.yml") +public class contractUtils { + + private static String user; + public static String getUser() { + return user; + } + + @Value("${sapWebservice.user}") + public void setUser(String user) { + contractUtils.user = user; + } + + private static String psw; + public static String getPsw() { + return psw; + } + + @Value("${sapWebservice.psw}") + public void setPsw(String psw) { + contractUtils.psw = psw; + } + + private static String host; + public static String getHost() { + return host; + } + + @Value("${sapWebservice.host}") + public void setHost(String host) { + contractUtils.host = host; + } + + public static List data(Contract contract) { + Authenticator.setDefault(new Authenticator() { + + @Override + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(user, psw.toCharArray()); + } + }); + + SIOASDHTCXOUTService ss = new SIOASDHTCXOUTService(); + ss.setHost(host); + + SIOASDHTCXOUT si = ss.getHTTPPort(); + DTOASDHTCXREQ d = new DTOASDHTCXREQ(); + + String beginDate = contract.getContractDateRange()[0]; + beginDate = beginDate.substring(0, 4) + beginDate.substring(5, 7) + beginDate.substring(8); + + String endDate = contract.getContractDateRange()[1]; + endDate = endDate.substring(0, 4) + endDate.substring(5, 7) + endDate.substring(8); + + d.setHTQDRQS(beginDate); + d.setHTQDRQE(endDate); + d.setKUNNR(contract.getContractCustom()); + d.setHTBH2(contract.getContractNo()); + d.setZYWY(contract.getContractSalesmanNo()); + + DTOASDHTCXRESP dt = si.siOASDHTCXOUT(d); + List HTDATA = dt.getHTDATA(); + return HTDATA; + + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/package-info.java b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/package-info.java new file mode 100644 index 0000000..6c6aa7f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/webservice/contract/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://jncable.com/SD/HTCX") +package com.ruoyi.web.webservice.contract; diff --git a/ruoyi-admin/src/main/resources/common.yml b/ruoyi-admin/src/main/resources/common.yml new file mode 100644 index 0000000..25585e7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/common.yml @@ -0,0 +1,8 @@ +order.commitDateBeginAm: 08:00:00 +order.commitDateEndAm: 12:00:00 +order.commitDateBeginPm: 12:00:00 +order.commitDateEndPm: 20:00:00 + +sapWebservice.host: poprd +sapWebservice.user: PO_USER +sapWebservice.psw: QAZ54321 diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java index 2e17c4a..0999c54 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java @@ -2,7 +2,7 @@ package com.ruoyi.common.enums; /** * 业务操作类型 - * + * * @author ruoyi */ public enum BusinessType @@ -22,6 +22,11 @@ public enum BusinessType */ UPDATE, + /** + * 新增修改 + */ + INSERT_OR_UPDATE, + /** * 删除 */ @@ -51,7 +56,7 @@ public enum BusinessType * 生成代码 */ GENCODE, - + /** * 清空数据 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/contract/domain/Contract.java b/ruoyi-system/src/main/java/com/ruoyi/contract/domain/Contract.java new file mode 100644 index 0000000..1a7e779 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/contract/domain/Contract.java @@ -0,0 +1,104 @@ +package com.ruoyi.contract.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 合同管理对象 Contract + * + * @author ruoyi + * @date 2024-01-23 + */ +public class Contract extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 日期 */ + @Excel(name = "日期") + private String contractDate; + private String[] contractDateRange; + + /** 合同号 */ + @Excel(name = "合同号") + private String contractNo; + + /** 业务员编码 */ + @Excel(name = "业务员编码") + private String contractSalesmanNo; + + /** 业务员 */ + @Excel(name = "业务员") + private String contractSalesman; + + /** 客户*/ + @Excel(name = "客户") + private String contractCustom; + + /** 合同金额 */ + @Excel(name = "合同金额") + private String contractJine; + + /** 备注 */ + @Excel(name = "备注") + private String contractRemark; + + public String getContractDate() { + return contractDate; + } + + public void setContractDate(String contractDate) { + this.contractDate = contractDate; + } + + public String getContractNo() { + return contractNo; + } + + public void setContractNo(String contractNo) { + this.contractNo = contractNo; + } + + public String getContractSalesman() { + return contractSalesman; + } + + public void setContractSalesman(String contractSalesman) { + this.contractSalesman = contractSalesman; + } + + public String getContractCustom() { + return contractCustom; + } + + public void setContractCustom(String contractCustom) { + this.contractCustom = contractCustom; + } + + public String getContractJine() { + return contractJine; + } + + public void setContractJine(String contractJine) { + this.contractJine = contractJine; + } + + public String getContractRemark() { + return contractRemark; + } + + public void setContractRemark(String contractRemark) { + this.contractRemark = contractRemark; + } + + public String getContractSalesmanNo() { + return contractSalesmanNo; + } + + public void setContractSalesmanNo(String contractSalesmanNo) { + this.contractSalesmanNo = contractSalesmanNo; + } + + public String[] getContractDateRange() {return contractDateRange;} + + public void setContractDateRange(String[] contractDateRange) {this.contractDateRange = contractDateRange;} +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/sapAccount/domain/SapAccount.java b/ruoyi-system/src/main/java/com/ruoyi/sapAccount/domain/SapAccount.java index 4638dec..1b818aa 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/sapAccount/domain/SapAccount.java +++ b/ruoyi-system/src/main/java/com/ruoyi/sapAccount/domain/SapAccount.java @@ -7,7 +7,7 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 业务账户对象 sap_account - * + * * @author ruoyi * @date 2024-03-11 */ @@ -18,14 +18,6 @@ public class SapAccount extends BaseEntity /** */ private Long id; - /** 账号 */ - @Excel(name = "账号") - private String userName; - - /** 姓名 */ - @Excel(name = "姓名") - private String nickName; - /** 账户 */ @Excel(name = "账户") private String sapBm; @@ -38,57 +30,39 @@ public class SapAccount extends BaseEntity @Excel(name = "片区") private String sapArea; - public void setId(Long id) + public void setId(Long id) { this.id = id; } - public Long getId() + public Long getId() { return id; } - public void setUserName(String userName) - { - this.userName = userName; - } - - public String getUserName() - { - return userName; - } - public void setNickName(String nickName) - { - this.nickName = nickName; - } - - public String getNickName() - { - return nickName; - } - public void setSapBm(String sapBm) + public void setSapBm(String sapBm) { this.sapBm = sapBm; } - public String getSapBm() + public String getSapBm() { return sapBm; } - public void setSapName(String sapName) + public void setSapName(String sapName) { this.sapName = sapName; } - public String getSapName() + public String getSapName() { return sapName; } - public void setSapArea(String sapArea) + public void setSapArea(String sapArea) { this.sapArea = sapArea; } - public String getSapArea() + public String getSapArea() { return sapArea; } @@ -97,8 +71,6 @@ public class SapAccount extends BaseEntity public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) - .append("userName", getUserName()) - .append("nickName", getNickName()) .append("sapBm", getSapBm()) .append("sapName", getSapName()) .append("sapArea", getSapArea()) diff --git a/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/domain/SapCustomer.java b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/domain/SapCustomer.java new file mode 100644 index 0000000..c30e52d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/domain/SapCustomer.java @@ -0,0 +1,98 @@ +package com.ruoyi.sapCustomer.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 客户管理对象 sap_customer + * + * @author ruoyi + * @date 2024-03-11 + */ +public class SapCustomer extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long customerId; + + /** 编码 */ + @Excel(name = "编码") + private String customerKunnr; + + /** 名称1 */ + @Excel(name = "名称1") + private String customerName1; + + /** 名称2 */ + @Excel(name = "名称2") + private String customerName2; + + private String customerName; + + /** 是否停用 */ + @Excel(name = "是否停用") + private String customerState; + + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerKunnr(String customerKunnr) + { + this.customerKunnr = customerKunnr; + } + + public String getCustomerKunnr() + { + return customerKunnr; + } + public void setCustomerName1(String customerName1) + { + this.customerName1 = customerName1; + } + + public String getCustomerName1() + { + return customerName1; + } + public void setCustomerName2(String customerName2) + { + this.customerName2 = customerName2; + } + + public String getCustomerName2() + { + return customerName2; + } + public void setCustomerState(String customerState) + { + this.customerState = customerState; + } + + public String getCustomerState() + { + return customerState; + } + public String getCustomerName() {return customerName;} + + public void setCustomerName(String customerName) {this.customerName = customerName;} + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("customerId", getCustomerId()) + .append("customerKunnr", getCustomerKunnr()) + .append("customerName1", getCustomerName1()) + .append("customerName2", getCustomerName2()) + .append("customerState", getCustomerState()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/mapper/SapCustomerMapper.java b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/mapper/SapCustomerMapper.java new file mode 100644 index 0000000..2b9e92c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/mapper/SapCustomerMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.sapCustomer.mapper; + +import com.ruoyi.sapCustomer.domain.SapCustomer; + +import java.util.List; + +/** + * 客户管理Mapper接口 + * + * @author ruoyi + * @date 2024-03-11 + */ +public interface SapCustomerMapper +{ + /** + * 查询客户管理 + * + * @param customerId 客户管理主键 + * @return 客户管理 + */ + public SapCustomer selectSapCustomerByCustomerId(Long customerId); + + /** + * 查询客户管理列表 + * + * @param sapCustomer 客户管理 + * @return 客户管理集合 + */ + public List selectSapCustomerList(SapCustomer sapCustomer); + + /** + * 新增客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + public int insertSapCustomer(SapCustomer sapCustomer); + + /** + * 修改客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + public int updateSapCustomer(SapCustomer sapCustomer); + + /** + * 删除客户管理 + * + * @param customerId 客户管理主键 + * @return 结果 + */ + public int deleteSapCustomerByCustomerId(Long customerId); + + /** + * 批量删除客户管理 + * + * @param customerIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteSapCustomerByCustomerIds(Long[] customerIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/ISapCustomerService.java b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/ISapCustomerService.java new file mode 100644 index 0000000..12a9bdd --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/ISapCustomerService.java @@ -0,0 +1,62 @@ +package com.ruoyi.sapCustomer.service; + +import com.ruoyi.sapCustomer.domain.SapCustomer; + +import java.util.List; + +/** + * 客户管理Service接口 + * + * @author ruoyi + * @date 2024-03-11 + */ +public interface ISapCustomerService +{ + /** + * 查询客户管理 + * + * @param customerId 客户管理主键 + * @return 客户管理 + */ + public SapCustomer selectSapCustomerByCustomerId(Long customerId); + + /** + * 查询客户管理列表 + * + * @param sapCustomer 客户管理 + * @return 客户管理集合 + */ + public List selectSapCustomerList(SapCustomer sapCustomer); + + /** + * 新增客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + public int insertSapCustomer(SapCustomer sapCustomer); + + /** + * 修改客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + public int updateSapCustomer(SapCustomer sapCustomer); + + /** + * 批量删除客户管理 + * + * @param customerIds 需要删除的客户管理主键集合 + * @return 结果 + */ + public int deleteSapCustomerByCustomerIds(Long[] customerIds); + + /** + * 删除客户管理信息 + * + * @param customerId 客户管理主键 + * @return 结果 + */ + public int deleteSapCustomerByCustomerId(Long customerId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/impl/SapCustomerServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/impl/SapCustomerServiceImpl.java new file mode 100644 index 0000000..dbde095 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/sapCustomer/service/impl/SapCustomerServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.sapCustomer.service.impl; + +import com.ruoyi.sapCustomer.domain.SapCustomer; +import com.ruoyi.sapCustomer.mapper.SapCustomerMapper; +import com.ruoyi.sapCustomer.service.ISapCustomerService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 客户管理Service业务层处理 + * + * @author ruoyi + * @date 2024-03-11 + */ +@Service +public class SapCustomerServiceImpl implements ISapCustomerService +{ + @Autowired + private SapCustomerMapper sapCustomerMapper; + + /** + * 查询客户管理 + * + * @param customerId 客户管理主键 + * @return 客户管理 + */ + @Override + public SapCustomer selectSapCustomerByCustomerId(Long customerId) + { + return sapCustomerMapper.selectSapCustomerByCustomerId(customerId); + } + + /** + * 查询客户管理列表 + * + * @param sapCustomer 客户管理 + * @return 客户管理 + */ + @Override + public List selectSapCustomerList(SapCustomer sapCustomer) + { + return sapCustomerMapper.selectSapCustomerList(sapCustomer); + } + + /** + * 新增客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + @Override + public int insertSapCustomer(SapCustomer sapCustomer) + { + return sapCustomerMapper.insertSapCustomer(sapCustomer); + } + + /** + * 修改客户管理 + * + * @param sapCustomer 客户管理 + * @return 结果 + */ + @Override + public int updateSapCustomer(SapCustomer sapCustomer) + { + return sapCustomerMapper.updateSapCustomer(sapCustomer); + } + + /** + * 批量删除客户管理 + * + * @param customerIds 需要删除的客户管理主键 + * @return 结果 + */ + @Override + public int deleteSapCustomerByCustomerIds(Long[] customerIds) + { + return sapCustomerMapper.deleteSapCustomerByCustomerIds(customerIds); + } + + /** + * 删除客户管理信息 + * + * @param customerId 客户管理主键 + * @return 结果 + */ + @Override + public int deleteSapCustomerByCustomerId(Long customerId) + { + return sapCustomerMapper.deleteSapCustomerByCustomerId(customerId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/sapAccount/SapAccountMapper.xml b/ruoyi-system/src/main/resources/mapper/sapAccount/SapAccountMapper.xml index f55cc61..2dda441 100644 --- a/ruoyi-system/src/main/resources/mapper/sapAccount/SapAccountMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/sapAccount/SapAccountMapper.xml @@ -3,48 +3,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + - - - select id, user_name, nick_name, sap_bm, sap_name, sap_area from sap_account + select id, sap_bm, sap_name, sap_area from sap_account - + - + insert into sap_account - user_name, - nick_name, sap_bm, sap_name, sap_area, - #{userName}, - #{nickName}, #{sapBm}, #{sapName}, #{sapArea}, @@ -68,9 +60,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from sap_account where id in + delete from sap_account where id in #{id} - \ No newline at end of file + diff --git a/ruoyi-system/src/main/resources/mapper/sapCustomer/SapCustomerMapper.xml b/ruoyi-system/src/main/resources/mapper/sapCustomer/SapCustomerMapper.xml new file mode 100644 index 0000000..d14e141 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/sapCustomer/SapCustomerMapper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + select customer_id, customer_kunnr, customer_name1,customer_name2,customer_name1 + isnull(customer_name2,'') customer_name, customer_state from sap_customer + + + + + + + + insert into sap_customer + + customer_kunnr, + customer_name1, + customer_name2, + customer_state, + + + #{customerKunnr}, + #{customerName1}, + #{customerName2}, + #{customerState}, + + + + + update sap_customer + + customer_kunnr = #{customerKunnr}, + customer_name1 = #{customerName1}, + customer_name2 = #{customerName2}, + customer_state = #{customerState}, + + where customer_id = #{customerId} + + + + delete from sap_customer where customer_id = #{customerId} + + + + delete from sap_customer where customer_id in + + #{customerId} + + + diff --git a/ruoyi-ui/src/api/sapCustomer/sapCustomer.js b/ruoyi-ui/src/api/sapCustomer/sapCustomer.js new file mode 100644 index 0000000..9549c76 --- /dev/null +++ b/ruoyi-ui/src/api/sapCustomer/sapCustomer.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询客户管理列表 +export function listSapCustomer(query) { + return request({ + url: '/sapCustomer/sapCustomer/list', + method: 'get', + params: query + }) +} + +// 查询客户管理详细 +export function getSapCustomer(customerId) { + return request({ + url: '/sapCustomer/sapCustomer/' + customerId, + method: 'get' + }) +} + +// 新增客户管理 +export function addSapCustomer(data) { + return request({ + url: '/sapCustomer/sapCustomer', + method: 'post', + data: data + }) +} + +// 修改客户管理 +export function updateSapCustomer(data) { + return request({ + url: '/sapCustomer/sapCustomer', + method: 'put', + data: data + }) +} + +// 删除客户管理 +export function delSapCustomer(customerId) { + return request({ + url: '/sapCustomer/sapCustomer/' + customerId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/utils/date.js b/ruoyi-ui/src/utils/date.js new file mode 100644 index 0000000..84fa10a --- /dev/null +++ b/ruoyi-ui/src/utils/date.js @@ -0,0 +1,12 @@ +// 获取当前日期范围 +export function getNowDate() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var date = now.getDate(); + month = month + 1; + month = month.toString().padStart(2, '0'); + date = date.toString().padStart(2, '0'); + var defaultDate = year+'-'+month+'-'+date; + return defaultDate; +} diff --git a/ruoyi-ui/src/views/sapAccount/sapAccount/index.vue b/ruoyi-ui/src/views/sapAccount/sapAccount/index.vue index 4190337..b86fd01 100644 --- a/ruoyi-ui/src/views/sapAccount/sapAccount/index.vue +++ b/ruoyi-ui/src/views/sapAccount/sapAccount/index.vue @@ -1,22 +1,6 @@ - +