ariesy 补充主表税率字段 v1

release
yefei 2 years ago
parent c602df5e48
commit c028c31c2d
  1. 2
      dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java
  2. 2
      dxhy-erp/src/main/java/com/dxhy/erp/dao/TdxRecordInvoiceDao.java
  3. 11
      dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java
  4. 6
      dxhy-erp/src/main/resources/mapper/TdxRecordInvoiceDao.xml

@ -1267,7 +1267,7 @@ public class SDNYMainProcessController extends AbstractController {
@PostMapping("/refresh")
@ResponseBody
@SysLog("发票查验")
public String refreshDetailData(@RequestBody Map<String, Integer> pramsMap) throws Exception {
public String refreshDetailData(@RequestBody Map<String, String> pramsMap) throws Exception {
log.info("接口请求的参数为:{}",pramsMap);
String result = snPushCheckRecordService.getRecords(pramsMap);
return result;

@ -186,7 +186,7 @@ public interface TdxRecordInvoiceDao extends BaseMapper<TdxRecordInvoice> {
void deleteByuuid(@Param("uuids") String[] uuids);
List<String> selectRecords(@Param("pramsMap") Map<String, Integer> pramsMap);
List<String> selectRecords(@Param("pramsMap") Map<String, String> pramsMap);
void updateTaxRate(@Param("pramsMap") Map<String, String> pramsMap);
}

@ -279,8 +279,8 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
return queryInvoiceResult;
}
public String getRecords(Map<String, Integer> pramsMap) {
public String getRecords(Map<String, String> pramsMap) {
DynamicContextHolder.push("business" + DbConstant.BUSINESS_WRITE);
QueryWrapper<TdxRecordInvoice> recordWrapper = new QueryWrapper<>();
List<String> uuids = tdxRecordInvoiceDao.selectRecords(pramsMap);
log.info("获取的uuid为{}",uuids);
@ -312,11 +312,10 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
}
log.info("taxRate={}",taxRate);
Map<String, String> pramsUpdate = new HashMap<>();
pramsUpdate.put("taxRate",taxRate);
pramsUpdate.put("uuid",uuid);
pramsMap.put("taxRate",taxRate);
pramsMap.put("uuid",uuid);
tdxRecordInvoiceDao.updateTaxRate(pramsUpdate);
tdxRecordInvoiceDao.updateTaxRate(pramsMap);
}
return "ok";
}

@ -694,10 +694,10 @@
limit #{pramsMap.start},#{pramsMap.num}
</select>
<update id="updateTaxRate" parameterType="java.util.Map">
<update id="updateTaxRate">
update t_dx_record_invoice
set tax_rate = #{taxRate}
where uuid = #{uuid}
set tax_rate = #{pramsMap.taxRate}
where uuid = #{pramsMap.uuid}
</update>

Loading…
Cancel
Save