|
|
@ -1,8 +1,10 @@ |
|
|
package com.xujie.modules.part.controller; |
|
|
package com.xujie.modules.part.controller; |
|
|
import com.xujie.common.utils.PageUtils; |
|
|
import com.xujie.common.utils.PageUtils; |
|
|
import com.xujie.common.utils.R; |
|
|
import com.xujie.common.utils.R; |
|
|
|
|
|
import com.xujie.modules.oss.entity.SysOssEntity; |
|
|
import com.xujie.modules.part.entity.Part; |
|
|
import com.xujie.modules.part.entity.Part; |
|
|
import com.xujie.modules.part.service.Iface.IPartService; |
|
|
import com.xujie.modules.part.service.Iface.IPartService; |
|
|
|
|
|
import com.xujie.modules.srm.service.SrmPaymentProposalService; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -27,6 +29,9 @@ public class PartController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private IPartService baseService; |
|
|
private IPartService baseService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SrmPaymentProposalService srmPaymentProposalService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 保存数据 |
|
|
* 保存数据 |
|
|
*/ |
|
|
*/ |
|
|
@ -62,10 +67,10 @@ public class PartController { |
|
|
/** |
|
|
/** |
|
|
* 根据主键获取实体对象 |
|
|
* 根据主键获取实体对象 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("/get") |
|
|
|
|
|
public R get(@RequestBody Part data) { |
|
|
|
|
|
baseService.get(data); |
|
|
|
|
|
return R.ok(); |
|
|
|
|
|
|
|
|
@PostMapping("/getPart") |
|
|
|
|
|
public R getPart(@RequestBody Part data) { |
|
|
|
|
|
Part part = baseService.getPart(data); |
|
|
|
|
|
return R.ok().put("data", part); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|