|
|
@ -7,6 +7,7 @@ import com.epmet.service.IcEnterpriseChangeRecordService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
@ -24,15 +25,23 @@ public class IcEnterpriseChangeRecordController { |
|
|
|
private IcEnterpriseChangeRecordService icEnterpriseChangeRecordService; |
|
|
|
|
|
|
|
@RequestMapping("page") |
|
|
|
public Result<PageData<IcEnterpriseChangeRecordDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
|
public Result<PageData<IcEnterpriseChangeRecordDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
|
PageData<IcEnterpriseChangeRecordDTO> page = icEnterpriseChangeRecordService.page(params); |
|
|
|
return new Result<PageData<IcEnterpriseChangeRecordDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping(value = "{id}", method = {RequestMethod.POST, RequestMethod.GET}) |
|
|
|
public Result<IcEnterpriseChangeRecordDTO> get(@PathVariable("id") String id){ |
|
|
|
public Result<IcEnterpriseChangeRecordDTO> get(@PathVariable("id") String id) { |
|
|
|
IcEnterpriseChangeRecordDTO data = icEnterpriseChangeRecordService.get(id); |
|
|
|
return new Result<IcEnterpriseChangeRecordDTO>().ok(data); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("history/{originId}") |
|
|
|
public Result<PageData<IcEnterpriseChangeRecordDTO>> page(@PathVariable("originId") String originId) { |
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
params.put("originId", originId); |
|
|
|
PageData<IcEnterpriseChangeRecordDTO> page = icEnterpriseChangeRecordService.page(params); |
|
|
|
return new Result<PageData<IcEnterpriseChangeRecordDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|