Commit 8f650334 by zhangxingmin

push

parent 3910f4f2
......@@ -12,7 +12,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = "com.yd")
@MapperScan("com.yd.**.dao")
@EnableFeignClients(basePackages = "com.yd")
@ComponentScan(basePackages = {"com.yd.auth.core", "com.yd.csf.service.config"})
@ComponentScan(basePackages = {"com.yd.csf.service.config","com.yd.auth.core"})
public class CsfApiApplication {
public static void main(String[] args) {
......
......@@ -398,7 +398,6 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
appointment.setStatus(status);
appointment.setCreatorName(authUserDto.getUsername());
appointment.setIsLegalBeneficiary(isLegalBeneficiary);
// appointmentMapper.insert(appointment);
iAppointmentService.saveOrUpdate(appointment);
return Result.success(appointment);
}
......
......@@ -34,7 +34,6 @@ public class CsfMybatisPlusConfig {
* 自动填充字段配置(如创建人、更新人等)
*/
@Bean
@Primary
public MetaObjectHandler metaObjectHandler() {
log.info("MetaObjectHandler Bean 正在创建...","MetaObjectHandler Bean 正在创建==========");
return new MetaObjectHandler() {
......@@ -57,8 +56,8 @@ public class CsfMybatisPlusConfig {
log.info("metaObjectHandler=======updateFill自动填充获取用户信息:{}", JSON.toJSONString(authUserDto));
if (authUserDto != null) {
//自动注入更新人和更新用户名
this.strictInsertFill(metaObject, "updaterId", String.class, authUserDto.getUserBizId());
this.strictInsertFill(metaObject, "updaterName", String.class, authUserDto.getUsername());
this.strictUpdateFill(metaObject, "updaterId", String.class, authUserDto.getUserBizId());
this.strictUpdateFill(metaObject, "updaterName", String.class, authUserDto.getUsername());
}
}
};
......
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