Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
| | |
| | | |
| | | import com.dy.pipIrrGlobal.pojoSt.StClientAmountMonth; |
| | | import com.dy.pipIrrGlobal.voSt.VoClientAmountStatistics; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountMonth; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | |
| | | int updateByPrimaryKey(StClientAmountMonth record); |
| | | |
| | | |
| | | |
| | | ////////////////////////////////////// |
| | | //æ¥è¯¢ç»è®¡ç»æ |
| | | /** |
| | | * æ¥è¯¢æ»æ°é |
| | | * @param params |
| | | * @return |
| | | */ |
| | | Long selectCountMonthStatistics(Map<?, ?> params) ; |
| | | /** |
| | | * æ¥è¯¢åé¡µæ°æ® |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<VoStClientAmountMonth> selectMonthStatistics(Map<?, ?> params) ; |
| | | |
| | | ////////////////////////////////////// |
| | | //ç»è®¡ç¸å
³ |
| | | /** |
| | |
| | | package com.dy.pipIrrGlobal.daoSt; |
| | | |
| | | import com.dy.pipIrrGlobal.pojoSt.StClientAmountYear; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountYearRecord; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | |
| | | */ |
| | | int updateByPrimaryKey(StClientAmountYear record); |
| | | |
| | | |
| | | |
| | | ////////////////////////////////////// |
| | | //æ¥è¯¢ç»è®¡ç»æ |
| | | /** |
| | | * æ¥è¯¢æ»æ°é |
| | | * @param params |
| | | * @return |
| | | */ |
| | | Long selectCountYearStatistics(Map<?, ?> params) ; |
| | | /** |
| | | * æ¥è¯¢åé¡µæ°æ® |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<VoStClientAmountYearRecord> selectYearStatistics(Map<?, ?> params) ; |
| | | |
| | | ////////////////////////////////////// |
| | | //ç»è®¡ç¸å
³ |
| | | /** |
| | | * æ¥è¯¢æå¹´ æéå¼ |
| | | * |
New file |
| | |
| | | package com.dy.pipIrrGlobal.voSt; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/1/4 10:15 |
| | | * @Description |
| | | */ |
| | | @Data |
| | | @JsonPropertyOrder({ "id", "clientId", "clientNum", "clientName", "clientAddress" , "year" |
| | | ,"amount1" , "money1" , "times1" |
| | | ,"amount2" , "money2" , "times2" |
| | | ,"amount3" , "money3" , "times3" |
| | | ,"amount4" , "money4" , "times4" |
| | | ,"amount5" , "money5" , "times5" |
| | | ,"amount6" , "money6" , "times6" |
| | | ,"amount7" , "money7" , "times7" |
| | | ,"amount8" , "money8" , "times8" |
| | | ,"amount9" , "money9" , "times9" |
| | | ,"amount10" , "money10" , "times10" |
| | | ,"amount11" , "money11" , "times11" |
| | | ,"amount12" , "money12" , "times12" |
| | | }) |
| | | public class VoStClientAmountMonth { |
| | | |
| | | public static final long serialVersionUID = 202501041014001L; |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long id; |
| | | |
| | | /** |
| | | * å¤é®ï¼æååæ· |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long clientId; |
| | | |
| | | /** |
| | | * åæ·ç¼æ |
| | | */ |
| | | public String clientNum ; |
| | | |
| | | /** |
| | | * åæ·åç§° |
| | | */ |
| | | public String clientName ; |
| | | |
| | | /** |
| | | * åæ·å°å |
| | | */ |
| | | public String clientAddress ; |
| | | |
| | | /** |
| | | * 年度 |
| | | */ |
| | | public Integer year; |
| | | |
| | | /** |
| | | * 1æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount1; |
| | | |
| | | /** |
| | | * 1æè±è´¹éé¢ |
| | | */ |
| | | public Double money1; |
| | | |
| | | /** |
| | | * 1æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times1; |
| | | |
| | | /** |
| | | * 2æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount2; |
| | | |
| | | /** |
| | | * 2æè±è´¹éé¢ |
| | | */ |
| | | public Double money2; |
| | | |
| | | /** |
| | | * 2æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times2; |
| | | |
| | | /** |
| | | * 3æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount3; |
| | | |
| | | /** |
| | | * 3æè±è´¹éé¢ |
| | | */ |
| | | public Double money3; |
| | | |
| | | /** |
| | | * 3æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times3; |
| | | |
| | | /** |
| | | * 4æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount4; |
| | | |
| | | /** |
| | | * 4æè±è´¹éé¢ |
| | | */ |
| | | public Double money4; |
| | | |
| | | /** |
| | | * 4æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times4; |
| | | |
| | | /** |
| | | * 5æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount5; |
| | | |
| | | /** |
| | | * 5æè±è´¹éé¢ |
| | | */ |
| | | public Double money5; |
| | | |
| | | /** |
| | | * 5æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times5; |
| | | |
| | | /** |
| | | * 6æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount6; |
| | | |
| | | /** |
| | | * 6æè±è´¹éé¢ |
| | | */ |
| | | public Double money6; |
| | | |
| | | /** |
| | | * 6æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times6; |
| | | |
| | | /** |
| | | * 7æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount7; |
| | | |
| | | /** |
| | | * 7æè±è´¹éé¢ |
| | | */ |
| | | public Double money7; |
| | | |
| | | /** |
| | | * 7æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times7; |
| | | |
| | | /** |
| | | * 8æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount8; |
| | | |
| | | /** |
| | | * 8æè±è´¹éé¢ |
| | | */ |
| | | public Double money8; |
| | | |
| | | /** |
| | | * 8æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times8; |
| | | |
| | | /** |
| | | * 9æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount9; |
| | | |
| | | /** |
| | | * 9æè±è´¹éé¢ |
| | | */ |
| | | public Double money9; |
| | | |
| | | /** |
| | | * 9æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times9; |
| | | |
| | | /** |
| | | * 10æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount10; |
| | | |
| | | /** |
| | | * 10æè±è´¹éé¢ |
| | | */ |
| | | public Double money10; |
| | | |
| | | /** |
| | | * 10æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times10; |
| | | |
| | | /** |
| | | * 11æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount11; |
| | | |
| | | /** |
| | | * 11æè±è´¹éé¢ |
| | | */ |
| | | public Double money11; |
| | | |
| | | /** |
| | | * 11æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times11; |
| | | |
| | | /** |
| | | * 12æç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount12; |
| | | |
| | | /** |
| | | * 12æè±è´¹éé¢ |
| | | */ |
| | | public Double money12; |
| | | |
| | | /** |
| | | * 12æç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times12; |
| | | |
| | | } |
New file |
| | |
| | | package com.dy.pipIrrGlobal.voSt; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/1/4 11:13 |
| | | * @Description |
| | | */ |
| | | @Data |
| | | @JsonPropertyOrder({ "yearGrp", "records" }) |
| | | public class VoStClientAmountYear { |
| | | |
| | | public List<Integer> yearGrp; |
| | | |
| | | public List<VoStClientAmountYearRecords> records; |
| | | } |
New file |
| | |
| | | package com.dy.pipIrrGlobal.voSt; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/1/6 9:38 |
| | | * @Description |
| | | */ |
| | | @Data |
| | | public class VoStClientAmountYearRecord { |
| | | /** |
| | | * å¤é®ï¼æååæ· |
| | | */ |
| | | public Long clientId; |
| | | |
| | | /** |
| | | * åæ·ç¼å¹´ |
| | | */ |
| | | public String clientNum ; |
| | | |
| | | /** |
| | | * åæ·åç§° |
| | | */ |
| | | public String clientName ; |
| | | |
| | | /** |
| | | * åæ·å°å |
| | | */ |
| | | public String clientAddress ; |
| | | |
| | | /** |
| | | * 1å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount; |
| | | |
| | | /** |
| | | * 1å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money; |
| | | |
| | | /** |
| | | * 1å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times; |
| | | |
| | | } |
New file |
| | |
| | | package com.dy.pipIrrGlobal.voSt; |
| | | |
| | | import com.alibaba.fastjson2.annotation.JSONField; |
| | | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; |
| | | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/1/4 10:15 |
| | | * @Description |
| | | */ |
| | | @Data |
| | | @JsonPropertyOrder({ "id", "clientId", "clientNum", "clientName", "clientAddress" |
| | | ,"amount1" , "money1" , "times1" |
| | | ,"amount2" , "money2" , "times2" |
| | | ,"amount3" , "money3" , "times3" |
| | | ,"amount4" , "money4" , "times4" |
| | | ,"amount5" , "money5" , "times5" |
| | | ,"amount6" , "money6" , "times6" |
| | | ,"amount7" , "money7" , "times7" |
| | | ,"amount8" , "money8" , "times8" |
| | | ,"amount9" , "money9" , "times9" |
| | | ,"amount10" , "money10" , "times10" |
| | | }) |
| | | public class VoStClientAmountYearRecords { |
| | | |
| | | public static final long serialVersionUID = 202501041106001L; |
| | | |
| | | /** |
| | | * å¤é®ï¼æååæ· |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long clientId; |
| | | |
| | | /** |
| | | * åæ·ç¼å¹´ |
| | | */ |
| | | public String clientNum ; |
| | | |
| | | /** |
| | | * åæ·åç§° |
| | | */ |
| | | public String clientName ; |
| | | |
| | | /** |
| | | * åæ·å°å |
| | | */ |
| | | public String clientAddress ; |
| | | |
| | | /** |
| | | * 1å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount1; |
| | | |
| | | /** |
| | | * 1å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money1; |
| | | |
| | | /** |
| | | * 1å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times1; |
| | | |
| | | /** |
| | | * 2å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount2; |
| | | |
| | | /** |
| | | * 2å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money2; |
| | | |
| | | /** |
| | | * 2å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times2; |
| | | |
| | | /** |
| | | * 3å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount3; |
| | | |
| | | /** |
| | | * 3å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money3; |
| | | |
| | | /** |
| | | * 3å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times3; |
| | | |
| | | /** |
| | | * 4å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount4; |
| | | |
| | | /** |
| | | * 4å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money4; |
| | | |
| | | /** |
| | | * 4å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times4; |
| | | |
| | | /** |
| | | * 5å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount5; |
| | | |
| | | /** |
| | | * 5å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money5; |
| | | |
| | | /** |
| | | * 5å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times5; |
| | | |
| | | /** |
| | | * 6å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount6; |
| | | |
| | | /** |
| | | * 6å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money6; |
| | | |
| | | /** |
| | | * 6å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times6; |
| | | |
| | | /** |
| | | * 7å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount7; |
| | | |
| | | /** |
| | | * 7å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money7; |
| | | |
| | | /** |
| | | * 7å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times7; |
| | | |
| | | /** |
| | | * 8å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount8; |
| | | |
| | | /** |
| | | * 8å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money8; |
| | | |
| | | /** |
| | | * 8å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times8; |
| | | |
| | | /** |
| | | * 9å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount9; |
| | | |
| | | /** |
| | | * 9å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money9; |
| | | |
| | | /** |
| | | * 9å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times9; |
| | | |
| | | /** |
| | | * 10å¹´ç¨æ°´éç»è®¡ |
| | | */ |
| | | public Double amount10; |
| | | |
| | | /** |
| | | * 10å¹´è±è´¹éé¢ |
| | | */ |
| | | public Double money10; |
| | | |
| | | /** |
| | | * 10å¹´ç¨æ°´æ¬¡æ° |
| | | */ |
| | | public Integer times10; |
| | | |
| | | } |
New file |
| | |
| | | spring: |
| | | servlet: |
| | | multipart: |
| | | # å端ä¸ä¼ æä»¶ï¼éå¶å个æä»¶ç大å°åéå¶æææä»¶çå¤§å° |
| | | max-file-size: 500MB |
| | | max-request-size: 5000MB |
| | | logging: |
| | | charset: |
| | | console: UTF-8 |
| | | config: |
| | | classpath: log4j2.yml |
| | | #ç¦ç¨ç½æ éè¯¯é¡µé¢ |
| | | server: |
| | | error: |
| | | whitelabel: |
| | | enabled: false |
| | | #servleté
ç½® |
| | | servlet: |
| | | encoding: |
| | | #åæ¶é»è®¤çå符éç¼ç |
| | | enabled: true |
| | | #设置强å¶ä½¿ç¨æå®å符ç¼ç é |
| | | force: true |
| | | #使ç¨çå符ç¼ç |
| | | charset: utf-8 |
| | | # actuatoré
ç½®ï¼å
includeäºå
¨é¨ï¼ç¶ååexcludeæå®çendpoint |
| | | management: |
| | | endpoints: |
| | | web: |
| | | exposure: |
| | | include: '*' |
| | | #exclude: beans |
| | | .shutdown: |
| | | enabled: true #æ¯å¦å¼å¯/actuator/shutdown |
| | | |
| | | # SpringDoc-OpenApi é
ç½® |
| | | springdoc: |
| | | swagger-ui: |
| | | #åºç¨actuatoræ¶ï¼è®¿é®: http://[IP]:[port]/actuator/swagger-ui/index.html ä¾å¦http://127.0.0.1:9080/actuator/swagger-ui/index.html |
| | | #æªç¨actuatoræ¶ï¼è®¿é®: http://[IP]:[port]/[context]/swagger-ui/index.html ä¾å¦http://127.0.0.1:8080/[åç³»ç»ä¸ä¸æï¼baseï¼]/swagger-ui/index.html |
| | | path: /swagger-ui |
| | | operationsSorter: method # HTTP æ¹æ³æåº |
| | | tagsSorter: alpha # API æåº |
| | | api-docs: |
| | | path: /v3/apiDocs |
| | | groups: |
| | | enabled: true |
| | | show-actuator: true #å¨actuatoré
ç½®ç端å£åä¸ä¸æä¸è®¿é® SpringDoc-OpenApi |
| | | use-management-port: true #åºç¨actuatoré
ç½®ç端å£ï¼ä½ä¸é¢çswagger-ui:pathåªä¼éç¨é»è®¤å¼swagger-ui |
| | | packages-to-scan: com.dy |
| | | #paths-to-match: /sys/**, /demo/**, /** |
| | | paths-to-match: /** |
| | | web: |
| | | title: å¤§ç¦¹èæ°´ç®¡ççæ§ç³»ç»API |
| | | description: å¤§ç¦¹èæ°´ç®¡ççæ§ç³»ç»æå¡ç«¯ Restfull API |
| | | version: v1.0.0 |
| | | license-name: å¤§ç¦¹èæ°´ç ç©¶é¢ |
| | | |
| | | #MybatisPlus é
ç½®æ¥å¿æ¾ç¤ºæ§è¡SQL |
| | | mybatis-plus: |
| | | #å¹é
sqlè¯å¥çæ å°æä»¶çä½ç½®ï¼classpath代表å¨resourcesä¸ |
| | | mapper-locations: classpath:mapper/*.xml |
| | | #以ä¸ä¸¤ä¸ªé
ç½®å¯ä»¥çç¥ï¼å¨mapperæ å°æä»¶ä¸é
ç½®â@Mapperâ乿¯å¯ä»¥çã |
| | | #使ç¨type-aliases-package䏿å®entityæ«æå
è·¯å¾ï¼è®©mybatisèªå¨æ«æèªå®ä¹çentity |
| | | #type-aliases-package: com.dy.pipIrrGlobal.daoBa |
| | | configuration: |
| | | #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #æ¶èè¾åºæ¥å¿ï¼æ¶èä¸è¾åºæ¥å¿ |
| | | #log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl ä¸ååºç¨ï¼æ¹ä¸ºPrintSqlInterceptoræ¦æªå¨è¾åºsqlæ¥å¿ï¼ä¸é¢print-sql项é
ç½® |
| | | print-sql: false # è¾åºsqlæ¥å¿å¼å
³ï¼æ§å¶PrintSqlInterceptoræ¦æªå¨æ¯å¦å è½½ |
| | | #å¼å¯é©¼å³°uNameèªå¨æ å°å°u_name |
| | | #2023-10-24ç»å®éªï¼ä¸é¢é
ç½®trueæfalseï¼é½è½ä»u_nameæ å°å°uName |
| | | #map-underscore-to-camel-case: true |
| | | lazyLoadingEnabled: true # å¼å¯å»¶æ¶å è½½å¼å
³ |
| | | aggressiveLazyLoading: false # å°ç§¯æå è½½æ¹ä¸ºæ¶æå è½½ï¼å³æéå è½½ï¼ï¼é»è®¤å¼æ¯false |
| | | lazy-load-trigger-methods: "" # 黿¡ä¸ç¸å¹²çæä½è§¦åï¼å®ç°æå è½½ |
| | | cache-enabled: true #æå¼å
¨å±ç¼åå¼å
³ï¼äºçº§ç¯å¢ï¼ï¼é»è®¤å¼æ¯true |
| | | default-enum-type-handler: com.dy.common.mybatis.envm.EnumCodeTypeHandler |
| | | |
| | | pipIrr: |
| | | global: |
| | | dev: false #æ¯å¦å¼åé¶æ®µï¼trueæfalse |
| | | dsName: ym #å¼åé¶æ®µï¼è®¾ç½®ä¸´æ¶çæ°æ®åºåç§° |
| | | nginx: |
| | | webPort: 19913 |
| | | mw: |
| | | webPort: 8070 #éä¿¡ä¸é´ä»¶ä¸åºç¨ï¼ä¸è½å¨web模åç³»ç»ä¸åºç¨ |
| | | actutorPort: 9070 #éä¿¡ä¸é´ä»¶ä¸åºç¨ï¼ä¸è½å¨web模åç³»ç»ä¸åºç¨ |
| | | idSuffix: 0 |
| | | sso: |
| | | cacheMaximumSize: 10000 #ç»å½ç¨æ·ç¼åå¯ç¼åç¨æ·çæå¤§å¼ |
| | | cacheDuration: 720 #ç¼åç»å½ç¨æ·ååæå¤§æ¶é¿ï¼åéï¼ |
| | | checkUrl: http://127.0.0.1:8079/sso/sso/ssoCheck |
| | | webPort: 8079 |
| | | actutorPort: 9079 |
| | | idSuffix: 1 |
| | | base: |
| | | webPort: 8080 |
| | | actutorPort: 9080 |
| | | idSuffix: 2 |
| | | remote: |
| | | webPort: 8081 |
| | | actutorPort: 9081 |
| | | idSuffix: 3 |
| | | statistics: |
| | | webPort: 8082 |
| | | actutorPort: 9082 |
| | | idSuffix: 4 |
| | | gis: |
| | | webPort: 8083 |
| | | actutorPort: 9083 |
| | | idSuffix: 5 |
| | | demo: |
| | | webPort: 8000 |
| | | actutorPort: 9000 |
| | | idSuffix: 99 |
| | | sell: |
| | | webPort: 8084 |
| | | actutorPort: 9084 |
| | | idSuffix: 6 |
| | | project: |
| | | webPort: 8085 |
| | | actutorPort: 9085 |
| | | idSuffix: 7 |
| | | irrigate: |
| | | webPort: 8086 |
| | | actutorPort: 9086 |
| | | idSuffix: 8 |
| | | wechat: |
| | | webPort: 8087 |
| | | actutorPort: 9087 |
| | | idSuffix: 9 |
| | | app: |
| | | webPort: 8088 |
| | | actutorPort: 9088 |
| | | idSuffix: 10 |
| | | operation: |
| | | webPort: 8089 |
| | | actutorPort: 9089 |
| | | idSuffix: 11 |
| | | # 2023-10-24æ°å¢ï¼ç¨äºæ§è¡ä¸´æ¶ä»»å¡ï¼ä¾å¦å 餿°æ®åºä¸ä¸äºåºéçæ°æ® |
| | | temp: |
| | | webPort: 8099 |
| | | actutorPort: 9099 |
| | | idSuffix: 98 |
| | | |
| | | # åå¸å¼webæä»¶ç³»ç» |
| | | file: |
| | | idSuffix: 99 |
| | | file1: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file2: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file3: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file4: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file5: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file6: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file7: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file8: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file9: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file10: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file11: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | file12: |
| | | webPort: 8180 |
| | | actutorPort: 9180 |
| | | |
| | | |
| | | #webåå¸å¼æä»¶ç³»ç» |
| | | dy: |
| | | photoZipWidth: 400 #缩ç¥å¾å°ºå¯¸ |
| | | webFile: |
| | | fmUrl: http://127.0.0.1:${pipIrr.file1.webPort}/file # fmçwebä¸ä¸æ URL |
| | | supportedFileTypes: docx,xlsx,doc,xls,pdf #æ¯æçææ¡£ï¼éåªä½æä»¶ï¼å¦ç
§çãå½é³ãå½åï¼æä»¶ç±»å |
| | | sv1: |
| | | id: dyFile1 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile1 |
| | | hashStart: 0 |
| | | hashEnd: 5461 |
| | | restUrl: http://127.0.0.1:${pipIrr.file1.webPort}/file #fileæ¯ä¸ä¸æ,ip为å±åç½ipææ¬å°IP |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ #nginxæå¡è·¯å¾,å®è£
é¨ç½²æ¶IPæ¹æå¤ç½IPæåå |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file1.webPort}/file/download/down?id= #å®è£
é¨ç½²æ¶IPæ¹æå¤ç½IPæåå |
| | | sv2: |
| | | id: dyFile2 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile2 |
| | | hashStart: 5462 |
| | | hashEnd: 10923 |
| | | restUrl: http://127.0.0.1:${pipIrr.file2.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file2.webPort}/file/download/down?id= |
| | | sv3: |
| | | id: dyFile3 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile3 |
| | | hashStart: 10924 |
| | | hashEnd: 16385 |
| | | restUrl: http://127.0.0.1:${pipIrr.file3.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file3.webPort}/file/download/down?id= |
| | | sv4: |
| | | id: dyFile4 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile4 |
| | | hashStart: 16386 |
| | | hashEnd: 21847 |
| | | restUrl: http://127.0.0.1:${pipIrr.file4.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file4.webPort}/file/download/down?id= |
| | | sv5: |
| | | id: dyFile5 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile5 |
| | | hashStart: 21848 |
| | | hashEnd: 27309 |
| | | restUrl: http://127.0.0.1:${pipIrr.file5.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file5.webPort}/file/download/down?id= |
| | | sv6: |
| | | id: dyFile6 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile6 |
| | | hashStart: 27310 |
| | | hashEnd: 32767 |
| | | restUrl: http://127.0.0.1:${pipIrr.file6.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file6.webPort}/file/download/down?id= |
| | | sv7: |
| | | id: dyFile7 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile7 |
| | | hashStart: 32768 |
| | | hashEnd: 38229 |
| | | restUrl: http://127.0.0.1:${pipIrr.file7.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file7.webPort}/file/download/down?id= |
| | | sv8: |
| | | id: dyFile8 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile8 |
| | | hashStart: 38230 |
| | | hashEnd: 43691 |
| | | restUrl: http://127.0.0.1:${pipIrr.file8.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file8.webPort}/file/download/down?id= |
| | | sv9: |
| | | id: dyFile9 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile9 |
| | | hashStart: 43692 |
| | | hashEnd: 49153 |
| | | restUrl: http://127.0.0.1:${pipIrr.file9.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file9.webPort}/file/download/down?id= |
| | | sv10: |
| | | id: dyFile10 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile10 |
| | | hashStart: 49154 |
| | | hashEnd: 54615 |
| | | restUrl: http://127.0.0.1:${pipIrr.file10.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file10.webPort}/file/download/down?id= |
| | | sv11: |
| | | id: dyFile11 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile11 |
| | | hashStart: 54616 |
| | | hashEnd: 60077 |
| | | restUrl: http://127.0.0.1:${pipIrr.file11.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file11.webPort}/file/download/down?id= |
| | | sv12: |
| | | id: dyFile12 |
| | | absolutePath: E:/apps/pipIrr/nginx-1.27.0/html/webfiles/ |
| | | relativePath: webFile12 |
| | | hashStart: 60078 |
| | | hashEnd: 65535 |
| | | restUrl: http://127.0.0.1:${pipIrr.file12.webPort}/file |
| | | webUrl: http://no253541tf71.vicp.fun:${pipIrr.nginx.webPort}/webfiles/ |
| | | webDownloadPath: http://no253541tf71.vicp.fun:${pipIrr.file12.webPort}/file/download/down?id= |
| | | |
| | | #项ç®ç¼å· |
| | | #projectCode: |
| | | # ym: 100 |
| | | # sp: 101 |
| | | |
| | | #项ç®é
ç½® |
| | | project: |
| | | #项ç®ç¼ç |
| | | projectNo: 10 |
| | | #æ§å¶å¨ç±»å |
| | | controllerType: 57 |
| | | #é»è®¤è¡æ¿åºåç¼ç ï¼å¤©æ´¥-天津å¸-æ¦æ¸
åº-京滨工ä¸å-å¤§ç¦¹èæ°´ï¼ |
| | | divisionCode: 120114403100 |
| | | |
| | | |
| | | #é讯ä¸é´ä»¶ç¸å
³é
ç½® |
| | | #protocol: DYJS_2023,DYJS_2024 |
| | | mw: |
| | | #å½ä»¤åééä¿¡ä¸é´ä»¶å°å |
| | | ym: |
| | | url: "http://127.0.0.1:8070" |
| | | comSendUrl: "http://127.0.0.1:8070/rtuMw/com/send" |
| | | mj: |
| | | url: "http://127.0.0.1:8071" |
| | | comSendUrl: "http://127.0.0.1:8071/rtuMw/com/send" |
| | | mq: |
| | | url: "http://127.0.0.1:8100" |
| | | comSendUrl: "http://127.0.0.1:8100/rtuMw/com/send" |
| | | sp: |
| | | url: "http://127.0.0.1:8073" |
| | | comSendUrl: "http://127.0.0.1:8073/rtuMw/com/send" |
| | | test: |
| | | url: "http://127.0.0.1:8072" |
| | | comSendUrl: "http://127.0.0.1:8072/rtuMw/com/send" |
| | | #çæµæ§å¶æ¨¡ååè°å°å |
| | | rtuCallbackUrl_rm: "http://127.0.0.1:8081/remote/comRes/receive" |
| | | #rtuè¿ç¨å级模ååè°å°å |
| | | ugCallbackUrl_rm: "http://127.0.0.1:8081/remote/rtuUpgradeStateReceiver/receive" |
| | | #微信å°ç¨åºåè°å°å |
| | | rtuCallbackUrl_wx: "http://127.0.0.1:8087/wx/comRes/receive" |
| | | |
| | | #ä¸è¿è¡userTokenè¿æ»¤çURLï¼@ConfigurationPropertiesè¦æ±tokennofilter䏿æåæ¯é½å°å |
| | | tokennofilter: |
| | | urls: |
| | | - /sso/sso |
| | | - /remote/comRes/receive |
| | | - /remote/rtuUpgradeStateReceiver/receive |
| | | - /wx/comRes/receive |
| | | - /app/captcha/get |
| | | - /file/file #webåå¸å¼æä»¶ç³»ç» |
| | | - /file/fm #webåå¸å¼æä»¶ç³»ç» |
| | | |
| | | #èªå¨ç»è®¡é
ç½®ï¼èªå¨ç»è®¡å®æ¶ä»»å¡ä¼æ¯å¤©å®æ¶è¿è¡ |
| | | auto-statistics: |
| | | startHour: 0 #å¼å§å°æ¶ï¼å¿
é¡»æ¯0ç¹æä¹åï¼åå¼èå´æ¯0~5ï¼å¦StatisticsListenerä¸èªå¨è®¾ç½®æ0 |
| | | startMinute: 5 #å¼å§åé 5 |
| | | |
| | | #ééæ¶æ¯æ¨é |
| | | dingtalk: |
| | | ym: |
| | | enable: true #æ¯å¦å¯ç¨ |
| | | robot: |
| | | url: https://oapi.dingtalk.com/robot/send |
| | | access-token: fecef8e7725998f8912af05419580861aafc73413c4920036c07c050fa33055f |
| | | secret: SEC6042bc964d08899a5853eb321eb5a4d842a395982777f815bd07451c879228b7 |
| | | at-all: true |
| | | mobile: 18602657034 |
| | | mj: |
| | | enable: true #æ¯å¦å¯ç¨ |
| | | robot: |
| | | url: https://oapi.dingtalk.com/robot/send |
| | | access-token: fecef8e7725998f8912af05419580861aafc73413c4920036c07c050fa33055f |
| | | secret: SEC6042bc964d08899a5853eb321eb5a4d842a395982777f815bd07451c879228b7 |
| | | at-all: true |
| | | mobile: 18602657034 |
| | | mq: |
| | | enable: true #æ¯å¦å¯ç¨ |
| | | robot: |
| | | url: https://oapi.dingtalk.com/robot/send |
| | | access-token: fecef8e7725998f8912af05419580861aafc73413c4920036c07c050fa33055f |
| | | secret: SEC6042bc964d08899a5853eb321eb5a4d842a395982777f815bd07451c879228b7 |
| | | at-all: true |
| | | mobile: 18602657034 |
| | | sp: |
| | | enable: true #æ¯å¦å¯ç¨ |
| | | robot: |
| | | url: https://oapi.dingtalk.com/robot/send |
| | | access-token: fecef8e7725998f8912af05419580861aafc73413c4920036c07c050fa33055f |
| | | secret: SEC6042bc964d08899a5853eb321eb5a4d842a395982777f815bd07451c879228b7 |
| | | at-all: true |
| | | mobile: 18602657034 |
| | | test: |
| | | enable: true #æ¯å¦å¯ç¨ |
| | | robot: |
| | | url: https://oapi.dingtalk.com/robot/send |
| | | access-token: fecef8e7725998f8912af05419580861aafc73413c4920036c07c050fa33055f |
| | | secret: SEC6042bc964d08899a5853eb321eb5a4d842a395982777f815bd07451c879228b7 |
| | | at-all: true |
| | | mobile: 18602657034 |
| | | |
| | | #éæ§å¨åæ° |
| | | rtu: |
| | | batteryVolt: 17 |
| | | signalIntensity: |
| | | weak: 10 |
| | | ordinary: 20 |
| | | # strong: 20 |
| | | |
| | | #èæå¡é
ç½®åæ° |
| | | vc: |
| | | #èæå¡æä½ä½é¢æ¥è¦å¼ |
| | | alarmValue: 10 |
| | |
| | | times30, amount31, money31, times31 |
| | | </sql> |
| | | <sql id="Base_Column_List_with_alias"> |
| | | <!--@mbg.generated--> |
| | | ${alias}.id, ${alias}.client_id, ${alias}.`year`, ${alias}.`month`, ${alias}.amount1, ${alias}.money1, ${alias}.times1, ${alias}.amount2, ${alias}.money2, ${alias}.times2, |
| | | ${alias}.amount3, ${alias}.money3, ${alias}.times3, ${alias}.amount4, ${alias}.money4, ${alias}.times4, ${alias}.amount5, ${alias}.money5, ${alias}.times5, ${alias}.amount6, |
| | | ${alias}.money6, ${alias}.times6, ${alias}.amount7, ${alias}.money7, ${alias}.times7, ${alias}.amount8, ${alias}.money8, ${alias}.times8, ${alias}.amount9, ${alias}.money9, |
| | |
| | | select |
| | | count(*) |
| | | from se_client mtb |
| | | <where> |
| | | where mtb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null and name != ''"> |
| | | mtb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </where> |
| | | </trim> |
| | | </select> |
| | | |
| | | <select id="selectDayStatistics" resultType="com.dy.pipIrrGlobal.voSt.VoStClientAmountDay"> |
| | | select |
| | | mtb.id as clientId, |
| | | mtb.clientNum as clientNum, |
| | | mtb.phone as clientPhone, |
| | | mtb.name as clientName, |
| | | mtb.address as clientAddress, |
| | | <include refid="Base_Column_List_with_alias" > |
| | | <property name="alias" value="stTb"/> |
| | | </include> |
| | | from se_client mtb |
| | | LEFT JOIN st_client_amount_day stTb on stTb.client_id = mtb.id |
| | | <where> |
| | | where mtb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test = "year != null"> |
| | | stTb.year = #{year, jdbcType=INTEGER} |
| | | </if> |
| | |
| | | <if test="name != null and name != ''"> |
| | | AND mtb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </where> |
| | | order by mtb.id ASC |
| | | </trim> |
| | | order by mtb.id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | |
| | | times6, amount7, money7, times7, amount8, money8, times8, amount9, money9, times9, |
| | | amount10, money10, times10, amount11, money11, times11, amount12, money12, times12 |
| | | </sql> |
| | | <sql id="Base_Column_List_with_alias"> |
| | | <!--@mbg.generated--> |
| | | ${alias}.id, ${alias}.client_id, ${alias}.`year`, |
| | | ${alias}.amount1, ${alias}.money1, ${alias}.times1, ${alias}.amount2, ${alias}.money2, ${alias}.times2, |
| | | ${alias}.amount3, ${alias}.money3, ${alias}.times3, ${alias}.amount4, ${alias}.money4, ${alias}.times4, |
| | | ${alias}.amount5, ${alias}.money5, ${alias}.times5, ${alias}.amount6, ${alias}.money6, ${alias}.times6, |
| | | ${alias}.amount7, ${alias}.money7, ${alias}.times7, ${alias}.amount8, ${alias}.money8, ${alias}.times8, |
| | | ${alias}.amount9, ${alias}.money9, ${alias}.times9, ${alias}.amount10, ${alias}.money10, ${alias}.times10, |
| | | ${alias}.amount11, ${alias}.money11, ${alias}.times11, ${alias}.amount12, ${alias}.money12, ${alias}.times12 |
| | | </sql> |
| | | |
| | | |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <!-- ////////////////////////////////// --> |
| | | <!-- æ¥è¯¢ç»è®¡ç»æ --> |
| | | <!-- ////////////////////////////////// --> |
| | | <select id="selectCountMonthStatistics" resultType="java.lang.Long"> |
| | | select |
| | | count(*) |
| | | from se_client mtb |
| | | where mtb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null and name != ''"> |
| | | mtb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | <select id="selectMonthStatistics" resultType="com.dy.pipIrrGlobal.voSt.VoStClientAmountMonth"> |
| | | select |
| | | mtb.clientNum as clientNum, |
| | | mtb.phone as clientPhone, |
| | | mtb.address as clientAddress, |
| | | <include refid="Base_Column_List_with_alias" > |
| | | <property name="alias" value="stTb"/> |
| | | </include> |
| | | from se_client mtb |
| | | LEFT JOIN st_client_amount_month stTb on stTb.client_id = mtb.id |
| | | where mtb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test = "year != null"> |
| | | stTb.year = #{year, jdbcType=INTEGER} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | AND mtb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | | order by mtb.id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | |
| | | <!-- ////////////////////////////////// --> |
| | | <!-- ç»è®¡ç¸å
³ --> |
| | | <!-- ////////////////////////////////// --> |
| | | <select id="selectByYear" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <!-- ////////////////////////////////// --> |
| | | <!-- æ¥è¯¢ç»è®¡ç»æ --> |
| | | <!-- ////////////////////////////////// --> |
| | | <select id="selectCountYearStatistics" resultType="java.lang.Long"> |
| | | select |
| | | count(*) |
| | | from se_client mtb |
| | | where mtb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null and name != ''"> |
| | | mtb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | <select id="selectYearStatistics" resultType="com.dy.pipIrrGlobal.voSt.VoStClientAmountYearRecord"> |
| | | select |
| | | ctb.id as clientId, |
| | | ctb.clientNum as clientNum, |
| | | ctb.name as clientName, |
| | | ctb.address as clientAddress, |
| | | cayTb.amount as amount, |
| | | cayTb.money as money, |
| | | cayTb.times as times |
| | | from se_client ctb |
| | | LEFT JOIN st_client_amount_year cayTb on cayTb.client_id = ctb.id |
| | | where ctb.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="year != null"> |
| | | cayTb.`year` = #{year,jdbcType=INTEGER} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and ctb.name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | | order by ctb.id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | <!-- ////////////////////////////////// --> |
| | | <!-- ç»è®¡ç¸å
³ --> |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", "com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoSe", "com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoOp"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", |
| | | "com.dy.pipIrrGlobal.daoPr", |
| | | "com.dy.pipIrrGlobal.daoSe", |
| | | "com.dy.pipIrrGlobal.daoBa", |
| | | "com.dy.pipIrrGlobal.daoOp", |
| | | "com.dy.pipIrrGlobal.daoFi"}) |
| | | public class PipIrrOperationApplication { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountDay; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountMonth; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountYear; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @RequestMapping(path="stClient") |
| | | @RequiredArgsConstructor |
| | | public class StClientCtrl { |
| | | |
| | | private static final int startYear4YearStatistics = 2024 ; |
| | | |
| | | private StClientSv sv ; |
| | | |
| | |
| | | qo.month = ymd[1] ; |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectStClientAmountDay(qo)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æå®å¹´åæ·åæç¨æ°´é |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/amountOfMonth") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoStClientAmountMonth>>> amountOfMonth(StClientQo qo) throws Exception { |
| | | if(qo.year == null) { |
| | | return BaseResponseUtils.buildErrorMsg("æ¥è¯¢æ¡ä»¶å¹´åº¦ä¸è½ä¸ºç©º"); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectStClientAmountMonth(qo)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æå®å¹´åæ·åå¹´ç¨æ°´é |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/amountOfYear") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoStClientAmountYear>>> amountOfYear(StClientQo qo) throws Exception { |
| | | List<Integer> yearGrp = new ArrayList<Integer>(); |
| | | int nowYear = Integer.parseInt(DateTime.yyyy()) ; |
| | | if(qo.year == null) { |
| | | for(int i = startYear4YearStatistics; i <= nowYear; i++) { |
| | | yearGrp.add(i) ; |
| | | } |
| | | }else{ |
| | | if(qo.year > nowYear){ |
| | | qo.year = nowYear; |
| | | } |
| | | if(qo.year < startYear4YearStatistics){ |
| | | qo.year = startYear4YearStatistics; |
| | | } |
| | | yearGrp.add(qo.year) ; |
| | | } |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectStClientAmountYear(qo, yearGrp)); |
| | | } |
| | | } |
| | |
| | | import com.dy.pipIrrGlobal.daoSt.StClientAmountDayMapper ; |
| | | import com.dy.pipIrrGlobal.daoSt.StClientAmountMonthMapper ; |
| | | import com.dy.pipIrrGlobal.daoSt.StClientAmountYearMapper ; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountDay; |
| | | import com.dy.pipIrrGlobal.voSt.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public QueryResultVo<List<VoStClientAmountDay>> selectStClientAmountDay(StClientQo qo) throws ParseException { |
| | | /** |
| | | * æ¥è¯¢åæ·ç¨æ°´æ¥ç»è®¡ |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoStClientAmountDay>> selectStClientAmountDay(StClientQo qo) { |
| | | QueryResultVo<List<VoStClientAmountDay>> rsVo = new QueryResultVo<>() ; |
| | | // çææ¥è¯¢åæ° |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ; |
| | |
| | | } |
| | | return rsVo ; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ·ç¨æ°´æç»è®¡ |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoStClientAmountMonth>> selectStClientAmountMonth(StClientQo qo) { |
| | | QueryResultVo<List<VoStClientAmountMonth>> rsVo = new QueryResultVo<>() ; |
| | | // çææ¥è¯¢åæ° |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ; |
| | | // è·åç¬¦åæ¡ä»¶çè®°å½æ° |
| | | Long itemTotal = stClientAmountMonthDao.selectCountMonthStatistics(params) ; |
| | | |
| | | if(itemTotal != null && itemTotal > 0) { |
| | | rsVo.pageSize = qo.pageSize; |
| | | rsVo.pageCurr = qo.pageCurr; |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | |
| | | rsVo.obj = stClientAmountMonthDao.selectMonthStatistics(params); |
| | | } |
| | | return rsVo ; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ·ç¨æ°´å¹´ç»è®¡ |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<VoStClientAmountYear> selectStClientAmountYear(StClientQo qo, List<Integer> yearGrp) throws ParseException { |
| | | QueryResultVo<VoStClientAmountYear> rsQrVo = new QueryResultVo<>() ; |
| | | |
| | | VoStClientAmountYear rsVo = new VoStClientAmountYear(); |
| | | rsVo.yearGrp = yearGrp ; |
| | | rsQrVo.obj = rsVo ; |
| | | |
| | | // çææ¥è¯¢åæ° |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ; |
| | | // è·åç¬¦åæ¡ä»¶çè®°å½æ° |
| | | Long itemTotal = stClientAmountYearDao.selectCountYearStatistics(params) ; |
| | | |
| | | if(itemTotal != null && itemTotal > 0) { |
| | | rsQrVo.pageSize = qo.pageSize; |
| | | rsQrVo.pageCurr = qo.pageCurr; |
| | | rsQrVo.calculateAndSet(itemTotal, params); |
| | | |
| | | List<VoStClientAmountYearRecords> group = new ArrayList<>(); |
| | | int count = 1 ; |
| | | for(int year: yearGrp){ |
| | | params.put("year", year); |
| | | List<VoStClientAmountYearRecord> list = stClientAmountYearDao.selectYearStatistics(params); |
| | | if(group.isEmpty()){ |
| | | this.completion(group, list); |
| | | } |
| | | this.merge(count, group, list) ; |
| | | count += 1 ; |
| | | } |
| | | rsVo.records = group ; |
| | | } |
| | | |
| | | return rsQrVo ; |
| | | } |
| | | |
| | | /** |
| | | * è¡¥å
¨ï¼ éå䏿²¡æå°±çæä¸ä¸ª |
| | | * @param group |
| | | * @param list |
| | | */ |
| | | private void completion(List<VoStClientAmountYearRecords> group, List<VoStClientAmountYearRecord> list){ |
| | | boolean found ; |
| | | for (VoStClientAmountYearRecord voInList : list) { |
| | | found = false ; |
| | | for(VoStClientAmountYearRecords voInGrp : group) { |
| | | if(voInList.clientId.longValue() == voInGrp.clientId.longValue()) { |
| | | found = true ; |
| | | } |
| | | } |
| | | if(!found) { |
| | | VoStClientAmountYearRecords vo4s = new VoStClientAmountYearRecords(); |
| | | vo4s.clientId = voInList.clientId; |
| | | vo4s.clientNum = voInList.clientNum; |
| | | vo4s.clientName = voInList.clientName; |
| | | vo4s.clientAddress = voInList.clientAddress; |
| | | group.add(vo4s) ; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åå¹¶ï¼ éå䏿就åå¹¶ |
| | | * @param count |
| | | * @param group |
| | | * @param list |
| | | */ |
| | | private void merge(int count, List<VoStClientAmountYearRecords> group, List<VoStClientAmountYearRecord> list){ |
| | | for (VoStClientAmountYearRecord voInList : list) { |
| | | VoStClientAmountYearRecords voInGrp_ = null ; |
| | | for(VoStClientAmountYearRecords voInGrp : group) { |
| | | if(voInList.clientId.longValue() == voInGrp.clientId.longValue()) { |
| | | voInGrp_ = voInGrp ; |
| | | break ; |
| | | } |
| | | } |
| | | if(voInGrp_ != null){ |
| | | this.merge(count, voInGrp_, voInList); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åå¹¶å¼ |
| | | * @param count |
| | | * @param vo4s |
| | | * @param vo |
| | | */ |
| | | private void merge(int count, VoStClientAmountYearRecords vo4s, VoStClientAmountYearRecord vo){ |
| | | switch (count){ |
| | | case 1: |
| | | vo4s.amount1 = vo.amount; |
| | | vo4s.money1 = vo.money; |
| | | vo4s.times1 = vo.times; |
| | | break; |
| | | case 2: |
| | | vo4s.amount2 = vo.amount; |
| | | vo4s.money2 = vo.money; |
| | | vo4s.times2 = vo.times; |
| | | break; |
| | | case 3: |
| | | vo4s.amount3 = vo.amount; |
| | | vo4s.money3 = vo.money; |
| | | vo4s.times3 = vo.times; |
| | | break; |
| | | case 4: |
| | | vo4s.amount4 = vo.amount; |
| | | vo4s.money4 = vo.money; |
| | | vo4s.times4 = vo.times; |
| | | break; |
| | | case 5: |
| | | vo4s.amount5 = vo.amount; |
| | | vo4s.money5 = vo.money; |
| | | vo4s.times5 = vo.times; |
| | | break; |
| | | case 6: |
| | | vo4s.amount6 = vo.amount; |
| | | vo4s.money6 = vo.money; |
| | | vo4s.times6 = vo.times; |
| | | break; |
| | | case 7: |
| | | vo4s.amount7 = vo.amount; |
| | | vo4s.money7 = vo.money; |
| | | vo4s.times7 = vo.times; |
| | | break; |
| | | case 8: |
| | | vo4s.amount8 = vo.amount; |
| | | vo4s.money8 = vo.money; |
| | | vo4s.times8 = vo.times; |
| | | break; |
| | | case 9: |
| | | vo4s.amount9 = vo.amount; |
| | | vo4s.money9 = vo.money; |
| | | vo4s.times9 = vo.times; |
| | | break; |
| | | case 10: |
| | | vo4s.amount10 = vo.amount; |
| | | vo4s.money10 = vo.money; |
| | | vo4s.times10 = vo.times; |
| | | break; |
| | | } |
| | | } |
| | | } |