修改mapper文件

release
yishiqihuasheng 2 years ago
parent 8decb72817
commit 9d03a75b51
  1. 4
      dxhy-export-domestic/src/main/java/com/dxhy/domestic/model/dto/TdxExportCustomsModelDTO.java
  2. 14
      dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtFpzhcxController.java
  3. 6
      dxhy-extend/src/main/java/com/dxhy/extend/model/ExtBbycfpcxRespVO.java
  4. 4
      dxhy-extend/src/main/java/com/dxhy/extend/service/bb/impl/ExtYcfpcxServiceImpl.java
  5. 10
      dxhy-extend/src/main/resources/mapper/ExtBbycfpcxMapper.xml

@ -51,6 +51,10 @@ public class TdxExportCustomsModelDTO extends CommonDTO {
private String entryDiscrepancy;
private String bzdh;
private String inAccountStatus;
private String snVoucherNumber;
private String imageNumber;
private String postingTime;
private String accountStatus;
public void setParam(Page page, UserInfo userInfo) throws Exception {

@ -266,6 +266,20 @@ public class ExtFpzhcxController extends AbstractController {
data.put("company", pramsMap.get("company"));
data.put("menuId", pramsMap.get("menuId"));
data.put("imageNumber",pramsMap.get("imageNumber"));
data.put("snVoucherNumber",pramsMap.get("snVoucherNumber"));
if(pramsMap.get("postingTimeStart") != null && !"".equals(pramsMap.get("postingTimeStart"))){
data.put("postingTimeStart",DateUtils.getMorning(DateUtils.strToDate(pramsMap.get("postingTimeStart").toString())));
}
if(pramsMap.get("postingTimeEnd") != null && !"".equals(pramsMap.get("postingTimeEnd"))){
data.put("postingTimeEnd",DateUtils.getMorning(DateUtils.strToDate(pramsMap.get("postingTimeEnd").toString())));
}
if (pramsMap.get("accountPeriod") != null && !"".equals(pramsMap.get("accountPeriod"))) {
String accountPeriod = (String) pramsMap.get("accountPeriod");
accountPeriod = accountPeriod.substring(0,7);
data.put("accountPeriod",accountPeriod);
log.info("accountPeriod:{}",accountPeriod);
}
try {
return ResponseEntity.ok(R.ok().put("data", ycfpcxService.selectByPramsMap(data, curr, size)));
} catch (Exception e) {

@ -108,8 +108,12 @@ public class ExtBbycfpcxRespVO implements Serializable {
private String skssq;
private String businessName;
private String inaccountStatus;
private String inAccountStatus;
private String bzdh;
private String snVoucherNumber;
private String imageNumber;
private String accountPeriod;
private String postingTime;
public ExtBbycfpcxRespVO() {}

@ -105,8 +105,8 @@ public class ExtYcfpcxServiceImpl extends MpBaseServiceImpl<ExtBbycfpcxDao, ExtB
pageList.get(i).setRzzt(dictdetaServcice.queryDictName(DictConstant.DEDU_STATUS, rzzt));
String rzlx = pageList.get(i).getRzlx();
pageList.get(i).setRzlx(dictdetaServcice.queryDictName(DictConstant.INVOICE_RZLX, rzlx));
String inAccountStatus = pageList.get(i).getInaccountStatus();
pageList.get(i).setInaccountStatus(dictdetaServcice.queryDictName(DictConstant.INACCOUNT_STATUS,inAccountStatus));
String inAccountStatus = pageList.get(i).getInAccountStatus();
pageList.get(i).setInAccountStatus(dictdetaServcice.queryDictName(DictConstant.INACCOUNT_STATUS,inAccountStatus));
// if (rzlxModels!=null){
// for (DictdetaModel model : rzlxModels){

@ -5,7 +5,7 @@
<resultMap id="BaseResultMap"
type="com.dxhy.extend.model.ExtBbycfpcxRespVO">
<result column="inaccount_status" property="inaccountStatus"/>
<result column="inaccount_status" property="inAccountStatus"/>
<result column="bzdh" property="bzdh"/>
<result column="fpdm" property="fpdm"/>
<result column="fphm" property="fphm"/>
@ -60,8 +60,8 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh}
</if>
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'">
and t.inaccount_status = #{inaccountStatus}
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'">
and t.inaccount_status = #{inAccountStatus}
</if>
<if
test="yczt != null and yczt != '' and yczt != 'null' ">
@ -167,8 +167,8 @@
<if test="bzdh != null and bzdh != '' and bzdh != 'null'">
and t.bzdh = #{bzdh}
</if>
<if test="inaccountStatus != null and inaccountStatus != '' and inaccountStatus != 'null'">
and t.inaccount_status = #{inaccountStatus}
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null'">
and t.inaccount_status = #{inAccountStatus}
</if>
<if
test="yczt != null and yczt != '' and yczt != 'null' ">

Loading…
Cancel
Save