Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
| | |
| | | public String parseRtuAddr(byte[] bs, int index)throws Exception{ |
| | | String rtuAddrBCD = "" + ByteUtil.BCD2Long_BE(bs, index, index + 2) ;//å°åæ¯å¤§ç«¯æ¨¡å¼ |
| | | String rtuAddrStr = "" + ByteUtilUnsigned.bytes2Short_LE(bs, index + 3) ; |
| | | while(rtuAddrStr.length() < 5){ |
| | | while(rtuAddrStr.length() <= 5){ |
| | | rtuAddrStr = "0" + rtuAddrStr ; |
| | | } |
| | | return rtuAddrBCD + rtuAddrStr ; |
| | |
| | | |
| | | /** |
| | | * å¾å°å
³å¼éç±»ååç§° |
| | | * å¼å
³éç±»å(1:å·å¡å¼éï¼2:å·å¡å
³éï¼3:ä¸å¿ç«å¼éï¼4:ä¸å¿ç«å
³éï¼5:æ¬ è´¹å
³éï¼6:æµé计æ
éå
³éï¼7:ç´§æ¥å
³éï¼8:ç¨æ·è¿ç¨å¼éï¼9:ç¨æ·è¿ç¨å
³éï¼10:å¼å
³éå¡å
³éï¼11:å¼å
³éå¡å·å¡å¡å¼éï¼) |
| | | * å¼å
³éç±»å( |
| | | * 1:å·å¡å¼éï¼ |
| | | * 2:å·å¡å
³éï¼ |
| | | * 3:ä¸å¿ç«å¼éï¼ |
| | | * 4:ä¸å¿ç«å
³éï¼ |
| | | * 5:æ¬ è´¹å
³éï¼ |
| | | * 6:æµé计æ
éå
³éï¼ |
| | | * 7:ç´§æ¥å
³éï¼ |
| | | * 8:ç¨æ·è¿ç¨å¼éï¼ |
| | | * 9:ç¨æ·è¿ç¨å
³éï¼ |
| | | * 10:å¼å
³éå¡å
³éï¼ |
| | | * 11:å¼å
³éå¡å·å¡å¡å¼éï¼ |
| | | * 12:é»ååå½ä»¤å
³éï¼ |
| | | * 13:ç¨æ·è¿ç¨å®æ¶å
³éï¼ |
| | | * 14:ç¨æ·è¿ç¨å®éå
³éï¼ |
| | | * ) |
| | | * @param type åè |
| | | * @return åç§° |
| | | */ |
| | |
| | | case 9 -> "ç¨æ·è¿ç¨å
³é"; |
| | | case 10 -> "å¼å
³éå¡å
³é"; |
| | | case 11 -> "å¼å
³éå¡å¼é"; |
| | | case 12 -> "é»ååå½ä»¤å
³é"; |
| | | case 13 -> "ç¨æ·è¿ç¨å®æ¶å
³é"; |
| | | case 14 -> "ç¨æ·è¿ç¨å®éå
³é"; |
| | | default -> "æªç¥"; |
| | | }; |
| | | } |
| | | public static Boolean isCloseValveType(byte type){ |
| | | return switch (type) { |
| | | case 1 -> false ; |
| | | case 2 -> true ; |
| | | case 3 -> false ; |
| | | case 4 -> true ; |
| | | case 5 -> true ; |
| | | case 6 -> true ; |
| | | case 7 -> true ; |
| | | case 8 -> false ; |
| | | case 9 -> true ; |
| | | case 10 -> true ; |
| | | case 11 -> false ; |
| | | case 1, 3, 8, 11 -> false ; |
| | | case 2, 4, 5, 6, 7, 9, 10, 12, 13, 14 -> true ; |
| | | default -> null ; |
| | | }; |
| | | } |
| | | |
| | | // /** |
| | | // * å¤çICå¡ç¼å·ï¼é³æ»å¶å®çåè®®è¦æ±10ä½ICå¡ç¼å· |
| | | // * @param icCardNo |
| | | // * @return |
| | | // */ |
| | | // public static String[] dealIcCardNo(String icCardNo){ |
| | | // if(icCardNo.length() > 10){ |
| | | // String tail = icCardNo.substring(icCardNo.length() - 10) ; |
| | | // String head = icCardNo.substring(0, icCardNo.length() - 10) ; |
| | | // return new String[]{head , tail} ; |
| | | // }else if(icCardNo.length() < 10){ |
| | | // while(icCardNo.length() != 10){ |
| | | // icCardNo = "0" + icCardNo ; |
| | | // } |
| | | // return new String[]{null , icCardNo} ; |
| | | // }else{ |
| | | // return new String[]{null , icCardNo} ; |
| | | // } |
| | | // } |
| | | |
| | | /* |
| | | * åæçæ¬å· |
| | | * @param bs ä¸è¡åèæ°ç» |
| | | * @return çæ¬å· |
| | | * @throws Exception å¼å¸¸ |
| | | public String parseVersion(byte[] bs)throws Exception{ |
| | | short ver = ByteUtilUnsigned.byte2Byte(bs, ProtocolConstantV206V1_0_0.versionIndex) ; |
| | | char[] cs = ("" + ver).toCharArray() ; |
| | | StringBuilder vs = new StringBuilder() ; |
| | | for(byte i = 0 ; i < cs.length; i++){ |
| | | if(i == 0){ |
| | | vs.append(cs[i]) ; |
| | | }else{ |
| | | vs.append(".").append(cs[i]) ; |
| | | } |
| | | } |
| | | return vs.toString() ; |
| | | } |
| | | */ |
| | | |
| | | } |
New file |
| | |
| | | package com.dy.common.mw.protocol.p206V1_0_0.downVos; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2024/7/25 15:27 |
| | | * @Description |
| | | */ |
| | | public class Com10Vo { |
| | | public String rtuAddr ; |
| | | } |
| | |
| | | package com.dy.common.mw.protocol.p206V1_0_0.parse; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.dy.common.mw.protocol.*; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.CodeV1_0_1; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.CommonV1_0_1; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.ParseParamsForDownV1_0_1; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.ProtocolConstantV206V1_0_0; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.downVos.Com10Vo; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.downVos.Com3AVo; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.parse.global.GlCreate; |
| | | import com.dy.common.util.ByteUtil; |
| | | |
| | |
| | | * @throws Exception å¼å¸¸ |
| | | */ |
| | | public byte[] doParse(ParseParamsForDownV1_0_1 para) throws Exception { |
| | | if(para.param == null) { |
| | | throw new Exception("å½ä»¤åæ°ä¸ºnull") ; |
| | | }else { |
| | | JSONObject obj = (JSONObject) para.param; |
| | | String json = obj.toJSONString(); |
| | | Com10Vo cvo = JSON.parseObject(json, Com10Vo.class); |
| | | if (cvo == null) { |
| | | throw new Exception("json转Com10Vo为null"); |
| | | } |
| | | if (cvo.rtuAddr == null) { |
| | | throw new Exception("æµè¯æ°å°åä¸è½ä¸ºç©º"); |
| | | } |
| | | |
| | | CommonV1_0_1 commonV1_0_1 = new CommonV1_0_1() ; |
| | | byte[] bytes ; |
| | | byte[] bsHead = new byte[ProtocolConstantV206V1_0_0.lenHead2Code] ; |
| | |
| | | |
| | | ByteUtil.hex2Bytes(para.commandCode, bsHead, index) ; |
| | | |
| | | if(para.param == null){ |
| | | throw new Exception("æªæä¾å½ä»¤åæ°æ°æ®ï¼ä¸è½æé åè½ç 为" + para.commandCode + "çä¸è¡å½ä»¤") ; |
| | | }else{ |
| | | index = 0 ; |
| | | byte[] bs = new byte[13] ; |
| | | String newRtuAddr = (String)para.param ; |
| | | GlCreate.createRtuAddr(newRtuAddr, bs, index); |
| | | |
| | | GlCreate.createRtuAddr(cvo.rtuAddr, bs, index); |
| | | index += 5 ; |
| | | GlCreate.createPw(bs, index); |
| | | index += 2 ; |
| | | GlCreate.createTp(bs, index); |
| | | bytes = ByteUtil.bytesMerge(bsHead, bs) ; |
| | | } |
| | | |
| | | GlCreate.createLen(bytes);//é¿åº¦æ¾åèæ°ç»ä¸ |
| | | |
| | |
| | | |
| | | return bytes ; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | String json = obj.toJSONString(); |
| | | Com99Vo cvo = JSON.parseObject(json, Com99Vo.class) ; |
| | | if(cvo == null){ |
| | | throw new Exception("json转Com97Vo为null") ; |
| | | throw new Exception("json转Com99Vo为null") ; |
| | | } |
| | | if(cvo.icCardNo == null){ |
| | | throw new Exception("èæICå¡ç¼å·ä¸è½ä¸ºç©º") ; |
| | |
| | | //ByteUtil.string2BCD_LE(bs, icCardNoGrp[1], index) ; |
| | | byte[] bs = new byte[8] ; |
| | | GlCreate.createIcCardNo(cvo.icCardNo, bs, 0); |
| | | bytes = ByteUtil.bytesMerge(bsHead, bs) ; |
| | | |
| | | |
| | | index += 5 ; |
| | | bs = new byte[4] ; |
| | | index = 0 ; |
| | | Integer money = Double.valueOf(cvo.moneyRemain * 100.0D).intValue() ; |
| | | byte[] bTemp = ByteUtil.int2BCD_LE(money) ; |
| | | int bTempLen = bTemp.length ; |
| | |
| | | for(; count < 4; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | bs = new byte[2] ; |
| | | index = 0 ; |
| | | Integer price = Double.valueOf(cvo.waterPrice * 100.0D).intValue() ; |
| | | bTemp = ByteUtil.int2BCD_LE(price) ; |
| | | bTempLen = bTemp.length ; |
| | |
| | | for(; count < 2; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | |
| | | bs = new byte[2] ; |
| | | index = 0 ; |
| | | bTemp = ByteUtil.int2BCD_LE(cvo.minutes) ; |
| | | bTempLen = bTemp.length ; |
| | | count = 0 ; |
| | |
| | | for(; count < 2; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | |
| | | bytes = ByteUtil.bytesMerge(bsHead, bs) ; |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | GlCreate.createLen(bytes);//é¿åº¦æ¾åèæ°ç»ä¸ |
| | | |
| | |
| | | String json = obj.toJSONString(); |
| | | ComA0Vo cvo = JSON.parseObject(json, ComA0Vo.class) ; |
| | | if(cvo == null){ |
| | | throw new Exception("json转Com97Vo为null") ; |
| | | throw new Exception("json转ComA0Vo为null") ; |
| | | } |
| | | if(cvo.icCardNo == null){ |
| | | throw new Exception("èæICå¡ç¼å·ä¸è½ä¸ºç©º") ; |
| | |
| | | //if(icCardNoGrp[0] != null){ |
| | | // midRs.param = icCardNoGrp[0] ; |
| | | //} |
| | | //ByteUtil.string2BCD_LE(bs, icCardNoGrp[1], index) ; |
| | | byte[] bs = new byte[16] ; |
| | | index = 0 ; |
| | | //ByteUtil.string2BCD_LE(bs, icCardNoGrp[1], index) ; |
| | | GlCreate.createIcCardNo(cvo.icCardNo, bs, 0); |
| | | bytes = ByteUtil.bytesMerge(bsHead, bs) ; |
| | | |
| | | index += 5 ; |
| | | bs = new byte[4] ; |
| | | index = 0 ; |
| | | Integer money = Double.valueOf(cvo.moneyRemain * 100.0D).intValue() ; |
| | | byte[] bTemp = ByteUtil.int2BCD_LE(money) ; |
| | | int bTempLen = bTemp.length ; |
| | |
| | | for(; count < 4; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | bs = new byte[2] ; |
| | | index = 0 ; |
| | | Integer price = Double.valueOf(cvo.waterPrice * 100.0D).intValue() ; |
| | | bTemp = ByteUtil.int2BCD_LE(price) ; |
| | | bTempLen = bTemp.length ; |
| | |
| | | for(; count < 2; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | |
| | | bs = new byte[2] ; |
| | | index = 0 ; |
| | | bTemp = ByteUtil.int2BCD_LE(cvo.waterAmount) ; |
| | | bTempLen = bTemp.length ; |
| | | count = 0 ; |
| | |
| | | for(; count < 2; count++){ |
| | | bs[index++] = 0 ; |
| | | } |
| | | |
| | | bytes = ByteUtil.bytesMerge(bsHead, bs) ; |
| | | bytes = ByteUtil.bytesMerge(bytes, bs) ; |
| | | |
| | | GlCreate.createLen(bytes);//é¿åº¦æ¾åèæ°ç»ä¸ |
| | | |
| | |
| | | * @throws Exception å¼å¸¸ |
| | | */ |
| | | public static String parseIcCardNo(byte[] bs, int index)throws Exception{ |
| | | String rtuAddrStr = "" + ByteUtilUnsigned.bytes2Short_LE(bs, index) ; |
| | | String rtuAddrBCD = "" + ByteUtil.BCD2Long_LE(bs, index + 2, index + 7) ; |
| | | while(rtuAddrStr.length() < 5){ |
| | | rtuAddrStr = "0" + rtuAddrStr ; |
| | | String icNoStr = "" + ByteUtilUnsigned.bytes2Short_LE(bs, index) ; |
| | | String icNoBCD = "" + ByteUtil.BCD2Long_LE(bs, index + 2, index + 7) ; |
| | | while(icNoStr.length() < 5){ |
| | | icNoStr = "0" + icNoStr ; |
| | | } |
| | | return rtuAddrBCD + rtuAddrStr ; |
| | | return icNoBCD + icNoStr ; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | @Data |
| | | public class DataCd83CloseVo { |
| | | // å¼å
³éç±»åï¼ |
| | | // 1ãå·å¡å¼éï¼2å·å¡å
³éï¼3ãä¸å¿ç«å¼éï¼4ãä¸å¿ç«å
³éï¼5ãæ¬ è´¹å
³éï¼ |
| | | // 6ãæµé计æ
éå
³éï¼7ãç´§æ¥å
³éï¼8ãç¨æ·è¿ç¨å¼éï¼9ãç¨æ·è¿ç¨å
³éï¼ |
| | | // å¼å
³éç±»åï¼è§CommonV1_0_1.openCloseValveType() |
| | | public Byte type ; |
| | | public Double totalAmount; //累计æµéï¼5åèBCDç ï¼åå¼èå´0~9999999999ï¼åä½ä¸ºm3ã |
| | | public String icCardNo;//ICå¡ç¼å· |
| | |
| | | sb.append(" ICå¡ç¼å·ï¼"); |
| | | sb.append(icCardNo); |
| | | sb.append("\n"); |
| | | sb.append(" icå¡å°åï¼"); |
| | | sb.append(" ICå¡å°åï¼"); |
| | | sb.append(icCardAddr); |
| | | sb.append("\n"); |
| | | sb.append(" å©ä½éé¢ï¼å
ï¼ï¼"); |
| | |
| | | |
| | | @Data |
| | | public class DataCd83OpenVo { |
| | | // å¼å
³éç±»åï¼ |
| | | // 1ãå·å¡å¼éï¼2å·å¡å
³éï¼3ãä¸å¿ç«å¼éï¼4ãä¸å¿ç«å
³éï¼5ãæ¬ è´¹å
³éï¼ |
| | | // 6ãæµé计æ
éå
³éï¼7ãç´§æ¥å
³éï¼8ãç¨æ·è¿ç¨å¼éï¼9ãç¨æ·è¿ç¨å
³éï¼ |
| | | // 16ï¼ç¨æ·å¼éå管éå
æ²¡ææ°´ï¼èªå¨å
³éã管éä¸åºæ°´èªå¨å
³é |
| | | // å¼å
³éç±»åï¼è§CommonV1_0_1.openCloseValveType() |
| | | public Byte type ; |
| | | public Double totalAmount; //累计æµéï¼5åèBCDç ï¼åå¼èå´0~9999999999ï¼åä½ä¸ºm3ã |
| | | public String icCardNo;//ICå¡ç¼å· |
| | |
| | | sb.append(" ICå¡ç¼å·ï¼"); |
| | | sb.append(icCardNo); |
| | | sb.append("\n"); |
| | | sb.append(" icå¡å°åï¼"); |
| | | sb.append(" ICå¡å°åï¼"); |
| | | sb.append(icCardAddr); |
| | | sb.append("\n"); |
| | | sb.append(" å©ä½éé¢ï¼å
ï¼ï¼"); |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | @TableName(value="rm_client_amount_month", autoResultMap = true) |
| | | @TableName(value="st_client_amount_month", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | @TableName(value="rm_client_amount_year", autoResultMap = true) |
| | | @TableName(value="st_client_amount_year", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | @TableName(value="rm_intake_amount_month", autoResultMap = true) |
| | | @TableName(value="st_intake_amount_month", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | | @TableName(value="rm_intake_amount_year", autoResultMap = true) |
| | | @TableName(value="st_intake_amount_year", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | * @Description åæ°´å£æ¼ææç»è®¡ |
| | | */ |
| | | |
| | | @TableName(value="rm_loss_month", autoResultMap = true) |
| | | @TableName(value="st_loss_month", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | * @Description åæ°´å£æ¼æå¹´ç»è®¡ |
| | | */ |
| | | |
| | | @TableName(value="rm_loss_year", autoResultMap = true) |
| | | @TableName(value="st_loss_year", autoResultMap = true) |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | |
| | | - /wx/comRes/receive |
| | | #èªå¨ç»è®¡é
ç½®ï¼èªå¨ç»è®¡å®æ¶ä»»å¡ä¼æ¯å¤©å®æ¶è¿è¡ |
| | | auto-statistics: |
| | | startHour: 9 #å¼å§å°æ¶ 0 |
| | | startMinute: 51 #å¼å§åé 5 |
| | | startHour: 17 #å¼å§å°æ¶ 0 |
| | | startMinute: 19 #å¼å§åé 5 |
| | |
| | | <if test="valveState != null"> |
| | | and rash.valve_state = #{valveState,jdbcType=TINYINT} |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rash.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | |
| | | <if test="valveState != null"> |
| | | and rash.valve_state = #{valveState,jdbcType=TINYINT} |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rash.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | |
| | | <if test="valveState != null"> |
| | | and rasl.valve_state = #{valveState,jdbcType=TINYINT} |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rasl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | |
| | | <if test="valveState != null"> |
| | | and rasl.valve_state = #{valveState,jdbcType=TINYINT} |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rasl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | |
| | | <if test="clientName != null"> |
| | | and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="clientId != null"> |
| | | and rcadl.client_id = #{clientId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rcadl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="clientName != null"> |
| | | and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="clientId != null"> |
| | | and rcadl.client_id = #{clientId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rcadl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="clientName != null"> |
| | | and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="clientId != null"> |
| | | and rcad.client_id = #{clientId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rcad.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="clientName != null"> |
| | | and sc.name like CONCAT('%',#{clientName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="clientId != null"> |
| | | and rcad.client_id = #{clientId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rcad.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and riadl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and riadl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and riadl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and riadl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and riad.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and riad.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and riad.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and riad.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rldl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rldl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rldl.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rldl.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rld.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rld.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | <if test="intakeName != null"> |
| | | and pint.name like CONCAT('%',#{intakeName,jdbcType=VARCHAR},'%') |
| | | </if> |
| | | <if test="intakeId != null"> |
| | | and rld.intake_id = #{intakeId} |
| | | </if> |
| | | <if test="startDt != null"> |
| | | and rld.dt >= #{startDt,jdbcType=DATE} |
| | | </if> |
| | |
| | | if(com == null){ |
| | | rt = this.connect() ;//è¿æ¥éä¿¡ä¸é´ä»¶æµè¯ |
| | | }else{ |
| | | if(com.equals("21")){ |
| | | if(com.equals("10")){ |
| | | rt = this.cd10() ; |
| | | }else if(com.equals("21")){ |
| | | rt = this.cd21() ; |
| | | }else if(com.equals("37")){ |
| | | rt = this.cd37() ; |
| | |
| | | rt = this.cd97() ; |
| | | }else if(com.equals("98")){ |
| | | rt = this.cd98() ; |
| | | }else if(com.equals("99")){ |
| | | rt = this.cd99() ; |
| | | }else if(com.equals("A0")){ |
| | | rt = this.cdA0() ; |
| | | }else if(com.equals("B0")){ |
| | | rt = this.cdB0() ; |
| | | } |
| | |
| | | */ |
| | | private BaseResponse connect(){ |
| | | return this.sendTest() ; |
| | | } |
| | | |
| | | private BaseResponse cd10(){ |
| | | Com10Vo comVo = new Com10Vo() ; |
| | | comVo.rtuAddr = "532328059995" ;//å6使¯è¡æ¿åºåç ï¼å6使¯åºå巿大æ¯065535 |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_10, comVo, null)) ; |
| | | } |
| | | |
| | | private BaseResponse cd21(){ |
| | |
| | | |
| | | private BaseResponse cd3C(){ |
| | | Com3CVo comVo = new Com3CVo() ; |
| | | comVo.minute = 60 ; |
| | | comVo.minute = 5 ; |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_3C, comVo, null)) ; |
| | | } |
| | | |
| | |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_98, comVo, null)) ; |
| | | } |
| | | |
| | | //宿¶å
³éå¼é |
| | | private BaseResponse cd99(){ |
| | | Com99Vo comVo = new Com99Vo() ; |
| | | comVo.icCardNo = CommandP206V1_0_0Ctrl.vsIcCardNo; |
| | | comVo.moneyRemain = 234.56 ; |
| | | comVo.waterPrice = 1.2 ; |
| | | comVo.minutes = 5 ; |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_99, comVo, null)) ; |
| | | } |
| | | |
| | | //å®éå
³éå¼é |
| | | private BaseResponse cdA0(){ |
| | | ComA0Vo comVo = new ComA0Vo() ; |
| | | comVo.icCardNo = CommandP206V1_0_0Ctrl.vsIcCardNo; |
| | | comVo.moneyRemain = 234.56 ; |
| | | comVo.waterPrice = 1.2 ; |
| | | comVo.waterAmount = 10 ; |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_98, comVo, null)) ; |
| | | } |
| | | |
| | | private BaseResponse cdB0(){ |
| | | return this.sendCom2Mw(this.command(CodeV1_0_1.cd_B0, null, null)) ; |
| | | } |
| | |
| | | package com.dy.pipIrrRemote.records.clientAmountDay; |
| | | |
| | | import com.dy.common.webUtil.QueryConditionVo; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | | |
| | |
| | | @Schema(name = "åæ·æ¥ç¨æ°´éç»è®¡æ¥è¯¢æ¡ä»¶") |
| | | public class ClientAmountDayQueryVo extends QueryConditionVo { |
| | | |
| | | @Schema(description = "åæ·ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private String clientId; |
| | | |
| | | @Schema(description = "åæ·å§å", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private String clientName; |
| | | |
| | |
| | | @Schema(description = "åæ°´å£åç§°", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private String intakeName; |
| | | |
| | | @Schema(description = "åæ°´å£ID") |
| | | private String intakeId; |
| | | |
| | | @Schema(description = "éé¨ç¶æ", requiredMode = Schema.RequiredMode.NOT_REQUIRED)//ï¼0æå¼ã1å
³éï¼ |
| | | private Byte valveState; |
| | | |
| | |
| | | @Schema(description = "åæ°´å£åç§°", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private String intakeName; |
| | | |
| | | @Schema(description = "åæ°´å£ID") |
| | | private String intakeId; |
| | | |
| | | @Schema(description = "ç»è®¡å¼å§æ¥æ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private Date startDt; |
| | | |
| | |
| | | @Schema(description = "åæ°´å£åç§°", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private String intakeName; |
| | | |
| | | @Schema(description = "åæ°´å£ID") |
| | | private String intakeId; |
| | | |
| | | @Schema(description = "ç»è®¡å¼å§æ¥æ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | private Date startDt; |
| | | |
| | |
| | | # 为å
é
ç½®ç¹æ®çLog级å«ï¼æ¹ä¾¿è°è¯ï¼ |
| | | # ä¸åLoggers.Root.leveléå¶ |
| | | Logger: |
| | | - name: com.dy.pipIrrGlobal.daoBa |
| | | - name: com.dy.pipIrrGlobal.daoRm |
| | | additivity: false #å»é¤éå¤çlog |
| | | level: debug #è¾åºæ¥å¿çº§å« |
| | | AppenderRef: |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", "com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoSe", "com.dy.pipIrrGlobal.daoBa"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", |
| | | "com.dy.pipIrrGlobal.daoPr", |
| | | "com.dy.pipIrrGlobal.daoSe", |
| | | "com.dy.pipIrrGlobal.daoBa", |
| | | "com.dy.pipIrrGlobal.daoSt"}) |
| | | public class PipIrrStatisticsApplication { |
| | | |
| | | public static void main(String[] args) { |