|
@@ -0,0 +1,112 @@
|
|
|
+package com.zcxk.rmcp.pay.dao.pay.archives;
|
|
|
+
|
|
|
+import com.zcxk.core.common.pojo.UserCondition;
|
|
|
+import com.zcxk.rmcp.pay.dto.pay.PayBaseCustomerandmeterrelaDto;
|
|
|
+import com.zcxk.rmcp.pay.dto.pay.PayCustomerDto;
|
|
|
+import com.zcxk.rmcp.pay.entity.Organization;
|
|
|
+import com.zcxk.rmcp.pay.entity.pay.PayBaseAccount;
|
|
|
+import com.zcxk.rmcp.pay.entity.pay.PayControlRule;
|
|
|
+import com.zcxk.rmcp.pay.entity.pay.PayControlValve;
|
|
|
+import com.zcxk.rmcp.pay.entity.pay.PayPayRechargeaccount;
|
|
|
+import com.zcxk.rmcp.pay.entity.pay.archives.*;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+
|
|
|
+import java.math.BigInteger;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author: xjh
|
|
|
+ * @Date: 2020/4/17 0017
|
|
|
+ */
|
|
|
+@Mapper
|
|
|
+public interface PayBaseCustomerandmeterrelaMapper {
|
|
|
+
|
|
|
+ PayBaseCustomerandmeterrela queryDevice();
|
|
|
+
|
|
|
+ public PayBaseAccount getAccountId(@Param("tenantId") String tenantId, @Param("accountnumber") String accountnumber);
|
|
|
+
|
|
|
+ public PayBaseCustomerandmeterrela getDeviceId(@Param("tenantId") String tenantId, @Param("metercode") String metercode);
|
|
|
+
|
|
|
+ public PayBaseCustomerandmeterrela getWaterPropertyId(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("name") String name);
|
|
|
+ public int insertList(@Param("customers") List<PayBaseCustomerandmeterrela> customers);
|
|
|
+
|
|
|
+ public int insertValveList(@Param("valve") List<PayControlValve> valve);
|
|
|
+
|
|
|
+ public Organization getOfficeId(@Param("siteId") Integer siteId, @Param("name") String name);
|
|
|
+
|
|
|
+ public List<PayBaseCustomerandmeterrela> findList(PayBaseCustomerandmeterrela customer);
|
|
|
+
|
|
|
+ public Double meterAllDebt(@Param("meterid") BigInteger meterid);
|
|
|
+
|
|
|
+ public PayPayRechargeaccount findByAccount(@Param("accountId") BigInteger accountId);
|
|
|
+
|
|
|
+ public int updateCustomerState(@Param("state") Integer state, @Param("updateBy") Integer updateBy, @Param("date") Date date,
|
|
|
+ @Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("id") BigInteger id);
|
|
|
+
|
|
|
+ public int updateRechargeAccountState(@Param("state") Integer state, @Param("updateBy") Integer updateBy, @Param("date") Date date,
|
|
|
+ @Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("id") BigInteger id);
|
|
|
+
|
|
|
+ public int updateAccountState(@Param("state") Integer state, @Param("updateBy") Integer updateBy, @Param("date") Date date,
|
|
|
+ @Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("id") BigInteger id);
|
|
|
+
|
|
|
+ public int updateDeviceState(@Param("state") Integer state, @Param("updateBy") Integer updateBy, @Param("date") Date date,
|
|
|
+ @Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("metercode") String metercode);
|
|
|
+
|
|
|
+ public List<PayBaseCustomerandmeterrela> getList(@Param("condition") String condition, @Param("waterPropertyId") BigInteger waterPropertyId,
|
|
|
+ @Param("businessstate") Integer businessstate, @Param("calculateway") Integer calculateway, @Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+
|
|
|
+ public List<DeviceListInfo> queryNoOpenAccount(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+
|
|
|
+ public List<MeterListInfo> selectAccountInfo(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("accountnumber") String accountnumber);
|
|
|
+
|
|
|
+ List<CustomerListInfo> selectAccountWater(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("accountnumber") String accountnumber);
|
|
|
+
|
|
|
+ public List<MeterListInfo> queryMetercode(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+ public List<PayAccountInfo> selectAccountMeterInfo(@Param("tenantId") String tenantId, @Param("metercode") String metercode);
|
|
|
+ public List<PayAccountInfo> selectMeterElenoMeterInfo(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("metereleno") String metereleno);
|
|
|
+
|
|
|
+ public int updateAccountInfo(@Param("accountname") String accountname, @Param("accountnumber") String accountnumber, @Param("metercode") String metercode, @Param("idtype") Integer idtype,
|
|
|
+ @Param("idcardno") String idcardno, @Param("telephone") String telephone, @Param("officeId") BigInteger officeId,
|
|
|
+ @Param("housetype") Integer housetype, @Param("customergroup") Integer customergroup, @Param("updateBy") Integer updateBy,
|
|
|
+ @Param("date") Date date, @Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+
|
|
|
+ public int updateCustomerInfo(@Param("accountname") String accountname, @Param("accountnumber") String accountnumber, @Param("metercode") String metercode, @Param("idtype") Integer idtype,
|
|
|
+ @Param("idcardno") String idcardno, @Param("telephone") String telephone, @Param("officeId") BigInteger officeId,
|
|
|
+ @Param("housetype") Integer housetype, @Param("customergroup") Integer customergroup, @Param("updateBy") Integer updateBy,
|
|
|
+ @Param("date") Date date, @Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+
|
|
|
+ public List<PayCustomerDto> getAll(PayBaseCustomerandmeterrela payBaseCustomerandmeterrela, UserCondition userCondition);
|
|
|
+
|
|
|
+ void updateBaseAccountInfo(@Param("address") String address, @Param("telephone") String telephone,
|
|
|
+ @Param("idtype") Integer idtype, @Param("idcardno") String idcardno, @Param("accountnumber") String accountnumber,
|
|
|
+ @Param("siteId") BigInteger siteId, @Param("customerId") BigInteger customerId);
|
|
|
+
|
|
|
+ Integer queryWaterUserdStateCount(@Param("id") BigInteger id);
|
|
|
+
|
|
|
+ PayBaseCustomerandmeterrela get(@Param("id") BigInteger id);
|
|
|
+
|
|
|
+ void update(PayBaseCustomerandmeterrela payBaseCustomerandmeterrela);
|
|
|
+
|
|
|
+ public List<PayBaseCustomerandmeterrelaDto> getResetLadderList(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId);
|
|
|
+
|
|
|
+ public int queryCustomerInfo(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId,
|
|
|
+ @Param("accountnumber") String accountnumber, @Param("metercode") String metercode);
|
|
|
+
|
|
|
+ public PayBaseCustomerandmeterrela queryCancelInfo(@Param("tenantId") String tenantId,
|
|
|
+ @Param("accountnumber") String accountnumber, @Param("metercode") String metercode);
|
|
|
+
|
|
|
+ public Organization getParentOfficeId(@Param("siteId") Integer siteId, @Param("id") Integer id, @Param("name") String name);
|
|
|
+
|
|
|
+ public PayBaseCustomerandmeterrela findAccountByAccountNumber(@Param("siteId") Integer siteId, @Param("customerId") Integer customerId, @Param("accountnumber") String accountnumber);
|
|
|
+
|
|
|
+ void updateMeterInstallOpen(@Param("isAccepted") Integer isAccepted, @Param("updateBy") String updateBy, @Param("date") LocalDateTime date, @Param("id") BigInteger id);
|
|
|
+
|
|
|
+ public List<PayControlRule> getRuleNames(@Param("tenantId") String tenantId, @Param("list") List<String> list);
|
|
|
+
|
|
|
+ void insertValve(@Param("deviceId") BigInteger deviceId, @Param("date") LocalDateTime date, @Param("controlState") int controlState, @Param("controlRuleId") int controlRuleId);
|
|
|
+
|
|
|
+ PayBaseCustomerandmeterrela getAccountCustomer(@Param("id") BigInteger id);
|
|
|
+}
|