| | |
| | | IFNULL(A.amount, 0) AS lastamount, |
| | | IFNULL(B.amount, 0) AS thisamount |
| | | FROM ( |
| | | SELECT COUNTb. |
| | | (*) AS lastmonth, |
| | | SELECT COUNT(*) AS lastmonth, |
| | | amount, |
| | | deptid |
| | | FROM |
| | |
| | | deptid |
| | | ) A |
| | | left JOIN ( |
| | | SELECT COUNT |
| | | (*) AS thismouth, |
| | | SELECT COUNT(*) AS thismouth, |
| | | amount, |
| | | deptid |
| | | FROM |
| | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | private String deptid; |
| | | private String examinetime; |
| | | |
| | | } |
| | |
| | | <result column="offices" property="offices"/> |
| | | <result column="officetime" property="officetime"/> |
| | | <result column="deptid" property="deptid"/> |
| | | <result column="examinetime" property="examinetime"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | # commandTimeout: 5000 |
| | | datasource: |
| | | # MySql |
| | | url: jdbc:mysql://localhost:2083/zhba?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | url: jdbc:mysql://223.82.109.183:2083/zhba?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: zhba0728 |
| | | # PostgreSQL |