|
|
@@ -9,9 +9,13 @@ import java.util.UUID;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.mail.MessagingException;
|
|
|
|
|
|
+import org.apache.log4j.LogSF;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
@@ -26,7 +30,7 @@ import com.goafanti.customer.bo.LockingReleaseBo;
|
|
|
import com.goafanti.customer.service.CustomerService;
|
|
|
import com.goafanti.user.service.UserService;
|
|
|
@Component
|
|
|
-//@Controller
|
|
|
+@Controller
|
|
|
public class ReleaseUserTask {
|
|
|
@Resource
|
|
|
private CustomerService customerServiceImpl;
|
|
|
@@ -42,7 +46,7 @@ public class ReleaseUserTask {
|
|
|
*/
|
|
|
|
|
|
@Scheduled(cron = "0 0 1 * * ?")
|
|
|
-// @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
public void updateUser(){
|
|
|
LoggerUtils.debug(getClass(), "==============客户释放开始============");
|
|
|
Date releaseTime = new Date();
|