成本中心获取修改

This commit is contained in:
王帅 2025-05-28 08:40:35 +08:00
parent 729ba0aba4
commit c813948dbe
5 changed files with 8 additions and 6 deletions

View File

@ -29,8 +29,8 @@ public class CostCenterController {
* @return
*/
@RequestMapping(value = "/getCostCenter", method = RequestMethod.GET)
public BaseResponse<Object> getCostCenter() {
List<CostCenter> costCenters = costCenterService.getCostCenter();
public BaseResponse<Object> getCostCenter(String erpFactory) {
List<CostCenter> costCenters = costCenterService.getCostCenter(erpFactory);
return RespGenerator.returnOK(costCenters);
}

View File

@ -15,7 +15,7 @@ import java.util.Map;
@Mapper
public interface CostCenterDao {
List<CostCenter> getCostCenter();
List<CostCenter> getCostCenter(@Param("erpFactory") String erpFactory);
List<Map<String, Object>> getUserInfo();
void updatePacking(@Param("SALESHIPREQUESTNAME") String SALESHIPREQUESTNAME,

View File

@ -11,7 +11,7 @@ import java.util.List;
import java.util.Map;
public interface CostCenterService {
List<CostCenter> getCostCenter();
List<CostCenter> getCostCenter(String erpFactory);
List<Map<String, Object>> getUserInfo();
void updateCareerAssistanceNew(JSONObject in);

View File

@ -34,8 +34,8 @@ public class CostCenterServiceImpl implements CostCenterService {
private ToSAPServiceImpl toSAPService;
@Override
public List<CostCenter> getCostCenter() {
return costCenterDao.getCostCenter();
public List<CostCenter> getCostCenter(String erpFactory) {
return costCenterDao.getCostCenter(erpFactory);
}
@Override

View File

@ -5,6 +5,8 @@
<select id="getCostCenter" resultType="com.cim.idm.model.CostCenter">
select id, cost_code costCode, cost_name costName, erp_factory erpFactory, department, division
from cost_center
where division = 'Y'
and erp_factory = #{erpFactory}
</select>
<select id="getUserInfo" resultType="java.util.Map">