diff --git a/src/main/java/aiyh/utils/recordset/DoubleTypeHandler.java b/src/main/java/aiyh/utils/recordset/DoubleTypeHandler.java
new file mode 100644
index 0000000..6d9d9d0
--- /dev/null
+++ b/src/main/java/aiyh/utils/recordset/DoubleTypeHandler.java
@@ -0,0 +1,41 @@
+package aiyh.utils.recordset;
+
+import aiyh.utils.Util;
+import weaver.conn.RecordSet;
+import weaver.conn.RecordSetTrans;
+
+import java.lang.reflect.Field;
+
+/**
+ *
float处理
+ * create 2022/4/29 2:34 PM
+ *
+ * @author ayh
+ */
+
+public class DoubleTypeHandler implements TypeHandler {
+ @Override
+ public Object getValue(RecordSet rs, String fieldName, Field declaredField) {
+ String string = Util.null2DefaultStr(GetRsValueUtil.getRsValue(rs, fieldName, declaredField), "0.0");
+ return Double.parseDouble(string);
+ }
+
+ @Override
+ public Object getValue(RecordSet rs, int index, Field declaredField) {
+ String string = Util.null2DefaultStr(rs.getString(index), "0.0");
+ return Double.parseDouble(string);
+ }
+
+ @Override
+ public Object getValue(RecordSetTrans rs, String fieldName, Field declaredField) {
+ String string = Util.null2DefaultStr(GetRsValueUtil.getRsValue(rs, fieldName, declaredField), "0.0");
+ return Double.parseDouble(string);
+ }
+
+ @Override
+ public Object getValue(RecordSetTrans rs, int index, Field declaredField) {
+ String string = Util.null2DefaultStr(rs.getString(index), "0.0");
+ return Double.parseDouble(string);
+ }
+
+}
diff --git a/src/main/java/aiyh/utils/recordset/ResultMapper.java b/src/main/java/aiyh/utils/recordset/ResultMapper.java
index 80467bf..a4e89f8 100644
--- a/src/main/java/aiyh/utils/recordset/ResultMapper.java
+++ b/src/main/java/aiyh/utils/recordset/ResultMapper.java
@@ -41,7 +41,9 @@ public class ResultMapper {
typeHandler.put(boolean.class, new BooleanTypeHandler());
typeHandler.put(Date.class, new DataTypeHandler());
typeHandler.put(Float.class, new FloatTypeHandler());
- typeHandler.put(float.class, new FloatTypeHandler());
+ typeHandler.put(Float.class, new FloatTypeHandler());
+ typeHandler.put(double.class, new DoubleTypeHandler());
+ typeHandler.put(Double.class, new DoubleTypeHandler());
}
static {
@@ -55,6 +57,8 @@ public class ResultMapper {
paramType.put(boolean.class, Boolean::parseBoolean);
paramType.put(Float.class, Float::parseFloat);
paramType.put(float.class, Float::parseFloat);
+ paramType.put(double.class, Double::parseDouble);
+ paramType.put(Double.class, Double::parseDouble);
}
public T mapperResult(RecordSet rs, Method method, Class tClass, RecordsetUtil recordsetUtil) {
diff --git a/src/main/java/com/api/bokang/xiao/dz_invoice/mapper/DzInvoiceMapper.java b/src/main/java/com/api/bokang/xiao/dz_invoice/mapper/DzInvoiceMapper.java
index e85d4b4..a318558 100644
--- a/src/main/java/com/api/bokang/xiao/dz_invoice/mapper/DzInvoiceMapper.java
+++ b/src/main/java/com/api/bokang/xiao/dz_invoice/mapper/DzInvoiceMapper.java
@@ -33,7 +33,7 @@ public interface DzInvoiceMapper {
* @param fieldValue 字段值
* @return 操作结果
*/
- @Update("update APInvoice set check_status = #{checkStatus} where $t{fieldId} = #{fieldValue}")
+ @Update("update fnaInvoiceLedger set check_status = #{checkStatus} where $t{fieldId} = #{fieldValue}")
boolean updateInvoiceCheckStatus(@ParamMapper("check_status") int checkStatus,
@ParamMapper("fieldId") String fieldId,
@ParamMapper("fieldValue") Object fieldValue);
@@ -45,7 +45,7 @@ public interface DzInvoiceMapper {
* @param fieldValue 字段值
* @return 操作结果
*/
- @Update("update APInvoice set check_status = #{checkStatus} where $t{fieldId} in ${fieldValue}")
+ @Update("update fnaInvoiceLedger set check_status = #{checkStatus} where $t{fieldId} in ${fieldValue}")
boolean batchUpdateInvoiceCheckStatus(@ParamMapper("check_status") int checkStatus,
@ParamMapper("fieldId") String fieldId,
@ParamMapper("fieldValue") Object fieldValue);
@@ -55,7 +55,7 @@ public interface DzInvoiceMapper {
* 查询已经勾选过的发票信息
* @return 发票信息集合
*/
- @Select("select * from APInvoice where check_status = 2 or check_status = 3")
+ @Select("select * from fnaInvoiceLedger where (check_status = 2 or check_status = 3) and hxjksflr = 'Y'")
List