|
@@ -4,11 +4,11 @@ import java.io.File;
|
|
|
import java.io.FileOutputStream;
|
|
|
import java.io.IOException;
|
|
|
import java.io.OutputStream;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
-import org.apache.commons.io.IOUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.enums.OrderTypeEnum;
|
|
|
+import com.ym.mec.biz.service.ContractService;
|
|
|
import com.ym.mec.biz.service.TempTestService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.util.excel.POIUtil;
|
|
@@ -26,6 +28,9 @@ public class TempController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private TempTestService tempTestService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ContractService contractService;
|
|
|
|
|
|
@PostMapping(value = "/queryOrganMusicInfos")
|
|
|
public Object queryOrganMusicInfos(@RequestParam("multipartFile") MultipartFile multipartFile) {
|
|
@@ -61,4 +66,12 @@ public class TempController extends BaseController {
|
|
|
|
|
|
return succeed();
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping(value = "/generateContract")
|
|
|
+ public Object generateContract(Integer userId, String musicGroupId, OrderTypeEnum orderType, Date currentDate) {
|
|
|
+
|
|
|
+ contractService.transferProduceContract(userId, musicGroupId, orderType, currentDate);
|
|
|
+
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
}
|