成本中心获取修改
This commit is contained in:
parent
729ba0aba4
commit
c813948dbe
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user