|
@@ -17,6 +17,8 @@ import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -58,6 +60,10 @@ public class SubjectChangeServiceImpl extends BaseServiceImpl<Integer, SubjectCh
|
|
private SysMessageService sysMessageService;
|
|
private SysMessageService sysMessageService;
|
|
@Autowired
|
|
@Autowired
|
|
private StudentRegistrationService studentRegistrationService;
|
|
private StudentRegistrationService studentRegistrationService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ContractService contractService;
|
|
|
|
+
|
|
|
|
+ private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public BaseDAO<Integer, SubjectChange> getDAO() {
|
|
public BaseDAO<Integer, SubjectChange> getDAO() {
|
|
@@ -331,6 +337,12 @@ public class SubjectChangeServiceImpl extends BaseServiceImpl<Integer, SubjectCh
|
|
map.put(userId, userId.toString());
|
|
map.put(userId, userId.toString());
|
|
|
|
|
|
if (studentPaymentOrder.getStatus() == DealStatusEnum.SUCCESS) {
|
|
if (studentPaymentOrder.getStatus() == DealStatusEnum.SUCCESS) {
|
|
|
|
+ try {
|
|
|
|
+ contractService.transferProduceContract(userId, null);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("产品协议生成失败", e);
|
|
|
|
+ }
|
|
|
|
+
|
|
subjectChange.setStatus(SubjectChangeStatusEnum.SUCCESSED);
|
|
subjectChange.setStatus(SubjectChangeStatusEnum.SUCCESSED);
|
|
subjectChange.setUpdateTime(nowDate);
|
|
subjectChange.setUpdateTime(nowDate);
|
|
subjectChange.setSellTime(nowDate);
|
|
subjectChange.setSellTime(nowDate);
|