局端申报状态查询(下架)
This commit is contained in:
parent
d0da02119d
commit
610c824e69
|
|
@ -90,11 +90,6 @@ public class SzyhApiConstant {
|
||||||
*/
|
*/
|
||||||
public static final String CANCEL_CORRECT = "gateway/iit/report/cancelCorrect";
|
public static final String CANCEL_CORRECT = "gateway/iit/report/cancelCorrect";
|
||||||
|
|
||||||
/**
|
|
||||||
* 税局端申报状态查询
|
|
||||||
*/
|
|
||||||
public static final String QUERY_DECLARE_STATUS = "/gateway/iit/report/queryDeclarationRecord";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取流量统计情况
|
* 获取流量统计情况
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -159,13 +159,6 @@ public interface TaxDeclareRecordService {
|
||||||
*/
|
*/
|
||||||
void cancelCorrect(Long id);
|
void cancelCorrect(Long id);
|
||||||
|
|
||||||
/**
|
|
||||||
* 税局端申报状态查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
*/
|
|
||||||
String queryDeclareStatus(Long id);
|
|
||||||
|
|
||||||
void updateById(TaxDeclareRecordPO taxDeclareRecord);
|
void updateById(TaxDeclareRecordPO taxDeclareRecord);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ import com.engine.salary.entity.taxdeclaration.dto.TaxDeclarationRateDTO;
|
||||||
import com.engine.salary.entity.taxdeclaration.param.AbnormalEmployeeListQueryParam;
|
import com.engine.salary.entity.taxdeclaration.param.AbnormalEmployeeListQueryParam;
|
||||||
import com.engine.salary.entity.taxdeclaration.param.TaxDeclarationListQueryParam;
|
import com.engine.salary.entity.taxdeclaration.param.TaxDeclarationListQueryParam;
|
||||||
import com.engine.salary.entity.taxdeclaration.param.TaxDeclarationSaveParam;
|
import com.engine.salary.entity.taxdeclaration.param.TaxDeclarationSaveParam;
|
||||||
import com.engine.salary.entity.taxdeclaration.param.TaxDeclareRecordParam;
|
|
||||||
import com.engine.salary.entity.taxdeclaration.po.*;
|
import com.engine.salary.entity.taxdeclaration.po.*;
|
||||||
import com.engine.salary.entity.taxdeclaration.response.CancelDeclareFeedbackResponse;
|
import com.engine.salary.entity.taxdeclaration.response.CancelDeclareFeedbackResponse;
|
||||||
import com.engine.salary.entity.taxdeclaration.response.DeclareTaxFeedbackResponse;
|
import com.engine.salary.entity.taxdeclaration.response.DeclareTaxFeedbackResponse;
|
||||||
|
|
@ -53,7 +52,6 @@ import com.engine.salary.util.db.IdGenerator;
|
||||||
import com.engine.salary.util.db.MapperProxyFactory;
|
import com.engine.salary.util.db.MapperProxyFactory;
|
||||||
import com.engine.salary.util.page.PageInfo;
|
import com.engine.salary.util.page.PageInfo;
|
||||||
import com.engine.salary.util.page.SalaryPageUtil;
|
import com.engine.salary.util.page.SalaryPageUtil;
|
||||||
import com.engine.salary.util.valid.ValidUtil;
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.Sets;
|
||||||
|
|
@ -1098,26 +1096,6 @@ public class TaxDeclareRecordServiceImpl extends Service implements TaxDeclareRe
|
||||||
// taxDeclarationLoggerTemplate.write(loggerContext);
|
// taxDeclarationLoggerTemplate.write(loggerContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String queryDeclareStatus(Long id) {
|
|
||||||
TaxDeclareRequest taxDeclareRequest = buildTaxDeclareRequest(id);
|
|
||||||
TaxDeclarationApiConfigPO apiConfig = taxDeclareRequest.getTaxDeclarationApiConfig();
|
|
||||||
TaxDeclareRecordPO taxDeclareRecord = taxDeclareRequest.getTaxDeclareRecord();
|
|
||||||
Map<String, Object> requestParam = taxDeclareRequest.getRequestParam();
|
|
||||||
// 税款所属期
|
|
||||||
requestParam.put("skssq", SalaryDateUtil.getFormatYYYYMM(taxDeclareRecord.getTaxCycle()));
|
|
||||||
// 请求
|
|
||||||
String reqJson = JsonUtil.toJsonString(requestParam);
|
|
||||||
String url = apiConfig.getHost() + SzyhApiConstant.QUERY_DECLARE_STATUS;
|
|
||||||
Map<String, String> params = new HashMap<>(1);
|
|
||||||
Map<String, String> header = SingnatureData.initHeader(params, apiConfig.getAppKey(), apiConfig.getAppSecret());
|
|
||||||
String res = HttpUtil.doPost(url, header, reqJson, HttpUtil.JSON_TYPE);
|
|
||||||
log.info("税局端申报状态查询返回数据:" + res);
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateById(TaxDeclareRecordPO taxDeclareRecord) {
|
public void updateById(TaxDeclareRecordPO taxDeclareRecord) {
|
||||||
|
|
|
||||||
|
|
@ -305,21 +305,6 @@ public class TaxDeclarationController {
|
||||||
// return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::cancelCorrect, taxDeclareRecordParam.getTaxDeclareRecordId());
|
// return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::cancelCorrect, taxDeclareRecordParam.getTaxDeclareRecordId());
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/**
|
|
||||||
* 税局端申报状态查询
|
|
||||||
*
|
|
||||||
* @param taxDeclareRecordParam 查询参数
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@POST
|
|
||||||
@Path("/queryDeclareStatus")
|
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
|
||||||
public String queryDeclareStatus(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
||||||
User user = HrmUserVarify.getUser(request, response);
|
|
||||||
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::queryDeclareStatus, taxDeclareRecordParam.getTaxDeclareRecordId());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 刷新数据
|
* 刷新数据
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -632,15 +632,6 @@ public class TaxDeclareRecordWrapper extends Service {
|
||||||
return taxDeclarationRate.getIndex();
|
return taxDeclarationRate.getIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 税局端申报状态查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public String queryDeclareStatus(Long id) {
|
|
||||||
return getTaxDeclareRecordService(user).queryDeclareStatus(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue