| | |
| | | , "/logout" |
| | | , "/cpe/**"//当前H5用户端不采用security |
| | | , "/sales-report/**"//报表目前不做权限校验 |
| | | , "/sales-report/**"//报表目前不做权限校验 |
| | | , "/code/login" |
| | | , "/sendMsg" |
| | | }; |
| | | public static final String[] APPLET_AUTH_WHITELIST = { |
| | | "/" |
| | |
| | | PageInfo<TOptometryVO> tOptometryVOPageInfo = optometristService.pageList(query); |
| | | List<TOptometryVO> records = tOptometryVOPageInfo.getRecords(); |
| | | for (TOptometryVO record : records) { |
| | | List<TOptometryDetail> list = optometryDetailService.lambdaQuery() |
| | | .eq(TOptometryDetail::getOptometryId, record.getId()) |
| | | .eq(TOptometryDetail::getType,1) |
| | | .list(); |
| | | record.setList(list); |
| | | if (record.getUserId()!=null){ |
| | | TAppUser byId = appUserService.getById(record.getUserId()); |
| | | if (byId!=null){ |
| | |
| | | package com.jilongda.manage.vo; |
| | | |
| | | import com.jilongda.manage.model.TOptometry; |
| | | import com.jilongda.manage.model.TOptometryDetail; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel(value = "验光单VO") |
| | |
| | | private String pupilDistance; |
| | | @ApiModelProperty(value = "验光师名称") |
| | | private String optometristName; |
| | | |
| | | @ApiModelProperty(value = "验光单详情") |
| | | private List<TOptometryDetail> list; |
| | | } |
| | |
| | | <artifactId>lombok</artifactId> |
| | | </exclude> |
| | | </excludes> |
| | | <mainClass>com.jilongda.optometrist.ManageApplication</mainClass> |
| | | <mainClass>com.jilongda.optometrist.OptometristApplication</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | |
File was renamed from optometrist/src/main/java/com/jilongda/optometrist/ManageApplication.java |
| | |
| | | @MapperScan({"com.jilongda.optometrist.mapper", "com.jilongda.optometrist.authority.mapper"}) |
| | | @EnableTransactionManagement |
| | | @SpringBootApplication |
| | | public class ManageApplication { |
| | | public class OptometristApplication { |
| | | |
| | | public static void main(String[] args) throws UnknownHostException { |
| | | ConfigurableApplicationContext application = SpringApplication.run(ManageApplication.class, args); |
| | | ConfigurableApplicationContext application = SpringApplication.run(OptometristApplication.class, args); |
| | | Environment env = application.getEnvironment(); |
| | | log.info("\n----------------------------------------------------------\n\t" + |
| | | "应用 '{}' 运行成功! 访问连接:\n\t" + |
| | |
| | | SecUser byId = secUserService.getById(userId); |
| | | TStore byId1 = storeService.getById(byId.getStoreId()); |
| | | tOptometristVO.setStoreName(byId1.getName()); |
| | | tOptometristVO.setName(byId.getNickName()); |
| | | tOptometristVO.setPhone(byId.getPhone()); |
| | | int size = optometryService.lambdaQuery().eq(TOptometry::getOptometristId, userId) |
| | | .eq(TOptometry::getStatus, 3).list().size(); |
| | | tOptometristVO.setOptometryCount(size); |