Commit be899fe0 by huluobin

update

parent fd5ee013
...@@ -6,17 +6,19 @@ import org.springframework.boot.SpringApplication; ...@@ -6,17 +6,19 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@EnableAsync
@RestController @RestController
@SpringBootApplication @SpringBootApplication
@ComponentScan(basePackages = {"com.blt.other", "com.bailuntec"}) @ComponentScan(basePackages = {"com.blt.other", "com.bailuntec"})
@EnableFeignClients @EnableFeignClients
@MapperScan(basePackages = {"com.blt.other.module.*.dao","com.blt.other.database.mapper"}) @MapperScan(basePackages = {"com.blt.other.module.*.dao", "com.blt.other.database.mapper"})
public class OtherApplication { public class OtherApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -22,6 +22,7 @@ public class BuyUserSyncJob extends QuartzJobBean { ...@@ -22,6 +22,7 @@ public class BuyUserSyncJob extends QuartzJobBean {
/** /**
* 获取用户信息 --> 保存到本系统采购员表 * 获取用户信息 --> 保存到本系统采购员表
*
* @param jobExecutionContext * @param jobExecutionContext
* @throws JobExecutionException * @throws JobExecutionException
*/ */
......
...@@ -205,8 +205,10 @@ public class CostDomain implements Serializable { ...@@ -205,8 +205,10 @@ public class CostDomain implements Serializable {
@ApiModelProperty("费用模版id") @ApiModelProperty("费用模版id")
private Integer costTemplateId; private Integer costTemplateId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("最后更新时间") @ApiModelProperty("最后更新时间")
private LocalDateTime lastModifyDate; private LocalDateTime lastModifyDate;
@ApiModelProperty("借支单,还款申请金额,包括已还的和申请中 ,借支单币种。") @ApiModelProperty("借支单,还款申请金额,包括已还的和申请中 ,借支单币种。")
private BigDecimal repaymentAppliedAmount; private BigDecimal repaymentAppliedAmount;
...@@ -219,7 +221,6 @@ public class CostDomain implements Serializable { ...@@ -219,7 +221,6 @@ public class CostDomain implements Serializable {
private String lendType; private String lendType;
//------------- //-------------
@TableField(exist = false) @TableField(exist = false)
private CostTemplate costTemplate; private CostTemplate costTemplate;
...@@ -234,7 +235,6 @@ public class CostDomain implements Serializable { ...@@ -234,7 +235,6 @@ public class CostDomain implements Serializable {
private String costCurrentReviewer; private String costCurrentReviewer;
public CostDto castToDto() { public CostDto castToDto() {
StatusMapper statusMapper = SpringContextUtil.getBean(StatusMapper.class); StatusMapper statusMapper = SpringContextUtil.getBean(StatusMapper.class);
......
...@@ -189,16 +189,6 @@ public abstract class AbstractCostService implements CostService { ...@@ -189,16 +189,6 @@ public abstract class AbstractCostService implements CostService {
if (null != costDomain.getCompanyNo()) { if (null != costDomain.getCompanyNo()) {
costDomain.setCompanyName(costCompanyDao.selectByNo(costDomain.getCompanyNo()).getCompanyName()); costDomain.setCompanyName(costCompanyDao.selectByNo(costDomain.getCompanyNo()).getCompanyName());
} }
//todo
// if (null != costDomain.getKindNo() && !"".equals(costDomain.getKindNo())) {
// CostTypeKindDomain costTypeKindDomain = costTypeKindDao.selectByKindNo(costDomain.getKindNo());
// if (null != costTypeKindDomain) {
// costDomain.setKindName(costTypeKindDomain.getKindName());
// costDomain.setTypeName(costTypeKindDomain.getTypeName());
// costDomain.setTypeNo(costTypeKindDomain.getTypeNo());
// }
// }
if (ListUtil.isNotEmpty(costDomain.getAttach())) { if (ListUtil.isNotEmpty(costDomain.getAttach())) {
costDomain.getAttach().forEach(costAttach -> { costDomain.getAttach().forEach(costAttach -> {
CostTemplateBaseCol costTemplateBaseCol = costTemplateBaseColMapper.selectById(costAttach.getCostTemplateBaseColId()); CostTemplateBaseCol costTemplateBaseCol = costTemplateBaseColMapper.selectById(costAttach.getCostTemplateBaseColId());
......
...@@ -11,6 +11,7 @@ import com.bailuntec.api.bailuntec.oa.response.OaUserResp; ...@@ -11,6 +11,7 @@ import com.bailuntec.api.bailuntec.oa.response.OaUserResp;
import com.bailuntec.common.SpringContextUtil; import com.bailuntec.common.SpringContextUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.blt.other.common.interceptor.mail.MailService;
import com.blt.other.database.model.CostCompanyDomain; import com.blt.other.database.model.CostCompanyDomain;
import com.blt.other.database.model.CostTypeDomain; import com.blt.other.database.model.CostTypeDomain;
import com.blt.other.module.auth.dao.OaDepartmentMapper; import com.blt.other.module.auth.dao.OaDepartmentMapper;
...@@ -349,5 +350,14 @@ public class OtherApplicationTests { ...@@ -349,5 +350,14 @@ public class OtherApplicationTests {
}); });
} }
@Resource
MailService mailService;
@Test
public void testMail() {
mailService.sendSimpleMail("robbendev@qq.com", "pre", "test");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment