Commit 9b4b919b authored by frank.xa.zhang's avatar frank.xa.zhang

add new api inputInvoicePreviewList

add new api queryOutputInvoiceList

fixed issues
parent 329be79c
...@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller; ...@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -17,7 +18,7 @@ public class InputInvoiceImportController { ...@@ -17,7 +18,7 @@ public class InputInvoiceImportController {
InputInvoiceDataImportService inputInvoiceDataImportService; InputInvoiceDataImportService inputInvoiceDataImportService;
@RequestMapping(value = "inputInvoicePreviewList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "inputInvoicePreviewList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public PagingResultDto<InputVATInvoiceDto> getInputInvoiceTreeViewData(InputInvoicePreviewQueryParam paras) { public PagingResultDto<InputVATInvoiceDto> getInputInvoiceTreeViewData(@RequestBody InputInvoicePreviewQueryParam paras) {
return inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras); return inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras);
} }
} }
...@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller; ...@@ -2,6 +2,7 @@ package pwc.taxtech.atms.controller;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -18,7 +19,7 @@ public class OutputInvoiceController { ...@@ -18,7 +19,7 @@ public class OutputInvoiceController {
OutputInvoiceService outputInvoiceService; OutputInvoiceService outputInvoiceService;
@RequestMapping(value = "queryOutputInvoiceList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "queryOutputInvoiceList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public PagingResultDto<OutputVATInvoiceInfoDto> queryOutputInvoiceList(QueryOutputDto queryDto) { public PagingResultDto<OutputVATInvoiceInfoDto> queryOutputInvoiceList(@RequestBody QueryOutputDto queryDto) {
return outputInvoiceService.queryOutputInvoiceList(queryDto); return outputInvoiceService.queryOutputInvoiceList(queryDto);
} }
} }
...@@ -127,4 +127,12 @@ public class InputInvoicePreviewQueryParam { ...@@ -127,4 +127,12 @@ public class InputInvoicePreviewQueryParam {
public void setTaxAmountEnd(BigDecimal taxAmountEnd) { public void setTaxAmountEnd(BigDecimal taxAmountEnd) {
this.taxAmountEnd = taxAmountEnd; this.taxAmountEnd = taxAmountEnd;
} }
public int getCertificationStatus() {
return certificationStatus;
}
public void setCertificationStatus(int certificationStatus) {
this.certificationStatus = certificationStatus;
}
} }
...@@ -107,7 +107,7 @@ public interface InputVATInvoiceMapper extends MyVatMapper { ...@@ -107,7 +107,7 @@ public interface InputVATInvoiceMapper extends MyVatMapper {
*/ */
int updateByPrimaryKey(InputVATInvoice record); int updateByPrimaryKey(InputVATInvoice record);
int getInputVATInvoiceCountByCondition(@Param("paras") InputInvoicePreviewQueryParam param); long getInputVATInvoiceCountByCondition(@Param("paras") InputInvoicePreviewQueryParam param);
List<InputVATInvoice> getInputVATInvoiceCountByConditionWithPaging(@Param("paras") InputInvoicePreviewQueryParam param,@Param("limitFrom") int limitFrom); List<InputVATInvoice> getInputVATInvoiceCountByConditionWithPaging(@Param("paras") InputInvoicePreviewQueryParam param,@Param("limitFrom") int limitFrom);
} }
\ No newline at end of file
...@@ -520,14 +520,14 @@ ...@@ -520,14 +520,14 @@
LEFT JOIN OutputVATInvoiceItem oi LEFT JOIN OutputVATInvoiceItem oi
ON o.InvoiceID = oi.InvoiceID ON o.InvoiceID = oi.InvoiceID
WHERE 1=1 WHERE 1=1
<if test="queryDto.PeriodStart"> <if test="queryDto.periodStart">
AND o.Period&gt;=#{queryDto.PeriodStart,jdbcType=VARCHAR} AND o.PeriodID&gt;=#{queryDto.periodStart,jdbcType=VARCHAR}
</if> </if>
<if test="queryDto.PeriodEnd"> <if test="queryDto.periodEnd">
AND o.Period&lt;=#{queryDto.PeriodEnd,jdbcType=VARCHAR} AND o.PeriodID&lt;=#{queryDto.periodEnd,jdbcType=VARCHAR}
</if> </if>
<if test="queryDto.ProductName!=null and queryDto.ProductName!=''"> <if test="queryDto.productName!=null and queryDto.productName!=''">
AND ProductName LIKE concat('%',#{query.ProductName,jdbcType=VARCHAR,'%'}) AND ProductName LIKE concat('%',#{query.productName,jdbcType=VARCHAR,'%'})
</if> </if>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment