Commit 19962d26 by wutong

推送费用单到财务系统变成出纳单的接口增加大类字段;为财务系统提供接口,传个单号,给他费用大类

parent f2b97f78
...@@ -4,7 +4,9 @@ import com.blt.other.other_commons.utils.DateTimeUtil; ...@@ -4,7 +4,9 @@ import com.blt.other.other_commons.utils.DateTimeUtil;
import com.blt.other.other_cost.dto.LogisticsCostDto; import com.blt.other.other_cost.dto.LogisticsCostDto;
import com.blt.other.other_cost.dto.ManageCostDto; import com.blt.other.other_cost.dto.ManageCostDto;
import com.blt.other.other_cost.service.CostApiService; import com.blt.other.other_cost.service.CostApiService;
import com.blt.other.other_cost.service.CostService;
import com.blt.other.other_database.model.CostDomain; import com.blt.other.other_database.model.CostDomain;
import com.blt.other.other_purchasing.dto.BuyListDto;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -105,4 +107,25 @@ public class CostApiController { ...@@ -105,4 +107,25 @@ public class CostApiController {
} }
return result; return result;
} }
/**
* 吴通新增
* 根据费用单号获取费用单大类
* @param costNo
* @return
*/
@GetMapping("/{costNo}")
public Map<String,Object> getTypeName(@PathVariable("costNo")String costNo) {
// 获取费用单详细信息
Map<String,Object> result = new HashMap<>();
try {
CostDomain costDomain = costApiService.getCostDetails(costNo);
result.put("success", true);
result.put("data", costDomain.getTypeName());
} catch (Exception e) {
e.printStackTrace();
result.put("success", false);
}
return result;
}
} }
...@@ -43,4 +43,7 @@ public interface CostApiService { ...@@ -43,4 +43,7 @@ public interface CostApiService {
* @return * @return
*/ */
List<CostDomain> getNoPayCost(List<String> costNoList); List<CostDomain> getNoPayCost(List<String> costNoList);
CostDomain getCostDetails(String costNo);
} }
package com.blt.other.other_cost.service.impl; package com.blt.other.other_cost.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.blt.other.other_auth.dao.UserDao; import com.blt.other.other_auth.dao.UserDao;
import com.blt.other.other_commons.utils.CurUtils; import com.blt.other.other_commons.utils.CurUtils;
...@@ -16,7 +15,6 @@ import com.blt.other.other_cost.service.UserCostFinansysService; ...@@ -16,7 +15,6 @@ import com.blt.other.other_cost.service.UserCostFinansysService;
import com.blt.other.other_cost.utils.CostUtils; import com.blt.other.other_cost.utils.CostUtils;
import com.blt.other.other_database.model.CostDetailDomain; import com.blt.other.other_database.model.CostDetailDomain;
import com.blt.other.other_database.model.CostDomain; import com.blt.other.other_database.model.CostDomain;
import com.blt.other.other_database.model.CostTypeKindDomain;
import com.blt.other.other_database.model.UserDomain; import com.blt.other.other_database.model.UserDomain;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -28,8 +26,6 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -28,8 +26,6 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -202,4 +198,9 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -202,4 +198,9 @@ public class CostApiServiceImpl implements CostApiService {
public List<CostDomain> getNoPayCost(List<String> costNoList){ public List<CostDomain> getNoPayCost(List<String> costNoList){
return costDao.selectNoPayCost(costNoList); return costDao.selectNoPayCost(costNoList);
} }
@Override
public CostDomain getCostDetails(String costNo) {
return costDao.selectByCostNo(costNo);
}
} }
...@@ -374,7 +374,8 @@ public class PurchasingListDetailController { ...@@ -374,7 +374,8 @@ public class PurchasingListDetailController {
detailKey = buy.getBuyno(); detailKey = buy.getBuyno();
} }
requestEntity.add("DetailKey", detailKey); // 回调必要的key参数(DetailKey)不能为空; requestEntity.add("DetailKey", detailKey); // 回调必要的key参数(DetailKey)不能为空;
//吴通新增添加SKU大类推送
requestEntity.add("TypeName", buy.getSkuTypeName());
Map<String, Object> map = requestEntity.toSingleValueMap(); Map<String, Object> map = requestEntity.toSingleValueMap();
String s = JSON.toJSONString(map); String s = JSON.toJSONString(map);
logger.warn("提交财务审核信息:"+s); logger.warn("提交财务审核信息:"+s);
......
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