ariesy 发票采集列表去掉DATE_FORMAT

release
yefei 2 years ago
parent b9860e286a
commit 0c73610773
  1. 2
      dxhy-base/src/main/java/com/dxhy/base/controller/BaseFpcjController.java
  2. 6
      dxhy-base/src/main/resources/mapper/BaseFpcjmxMapper.xml

@ -4,6 +4,7 @@ import java.util.*;
import javax.annotation.Resource;
import com.dxhy.common.utils.DateUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
@ -127,6 +128,7 @@ public class BaseFpcjController extends AbstractController {
return ResponseEntity.ok(R.error("购方信息不能为空!"));
}
if (StringUtils.isNotBlank(cjrq)) {
cjrq = DateUtils.getNight(DateUtils.strToDate(cjrq));
pramsMap.put("cjrq", cjrq);
} else {
return ResponseEntity.ok(R.error("采集日期不能为空!"));

@ -55,7 +55,7 @@
from t_dx_record_invoice t
where t.gf_tax_no = #{gfsh}
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08'))
and DATE_FORMAT(t.create_date,'%Y-%m-%d') = #{cjrq}
and t.create_date = #{cjrq}
<if test="ycpbz != null and ycpbz != '' and ycpbz != 'null' ">
and t.invoice_status !='0'
</if>
@ -71,7 +71,7 @@
from t_dx_record_invoice t
where t.gf_tax_no = #{gfsh}
and (invoice_type in('01','03','08','14','31','283','161','183','185') or (invoice_type ='32' and lq_tdyslxDm='08'))
and to_char(t.create_date,'yyyy-mm-dd') between #{cjrq} and #{cjrq}
and t.create_date between #{cjrq} and #{cjrq}
<if test="ycpbz != null and ycpbz != '' and ycpbz != 'null' ">
and t.invoice_status !='0'
</if>
@ -135,7 +135,7 @@
</if>
and t.source_system = '0'
and t.detail_yesorno = '0'
and to_char(t.create_date,'yyyy-mm-dd') between #{cjksrq} and #{cjjsrq}
and t.create_date between #{cjksrq} and #{cjjsrq}
order by t.create_date desc,t.invoice_date desc
</select>

Loading…
Cancel
Save