|
|
@@ -16,6 +16,7 @@ import com.iformall.domain.po.MallUserInfo; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
|
import com.iformall.domain.po.sm.PersonMould; |
|
|
|
import com.iformall.domain.po.sm.ServiceInfo; |
|
|
|
import com.iformall.domain.po.sm.ServicePersonMould; |
|
|
|
import com.iformall.domain.po.sm.ServiceVideoRecord; |
|
|
|
import com.iformall.enums.EnumProject; |
|
|
|
import com.iformall.enums.EnumUserAdmin; |
|
|
@@ -171,11 +172,11 @@ public class ServiceInfoController extends MallUserInfoBaseController{ |
|
|
|
@ApiVersion(group = SwaggerConstant.V_1_0_0) |
|
|
|
@ApiOperation("设置关联模板") |
|
|
|
@PostMapping("/associatedMould") |
|
|
|
public R<Void> associatedMould(Long[] mouldIds,Long serviceId) { |
|
|
|
if (null == mouldIds || mouldIds.length <= 0 ) { |
|
|
|
public R<Void> associatedMould(@RequestBody ServicePersonMould spm) { |
|
|
|
if (null == spm.getMouldIds() || spm.getMouldIds().size() <= 0 ) { |
|
|
|
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"请选择模板"); |
|
|
|
} |
|
|
|
serviceInfoService.associatedMoulds(mouldIds, serviceId); |
|
|
|
serviceInfoService.associatedMoulds(spm.getMouldIds(), spm.getServiceId()); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
|
|
|
|