| | |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | import java.io.File |
| | | import java.io.FileOutputStream |
| | | |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | |
| | | fun createQRCode() { |
| | | val info = baseInfoMapper.selectByPrimaryKey("1Qo1GHlHK3tHbcFK") |
| | | val supply = "${info.biCityName}${info.biDistrictName}生态环境局" |
| | | val file = File("C:/default.png") |
| | | EnvCreditCode.createImage(info.biGuid, info.biName, info.ciName, supply, file.outputStream()) |
| | | val file = FileOutputStream("target/default.png") |
| | | EnvCreditCode.createImage(info.biGuid, info.biName, info.ciName, supply, file) |
| | | } |
| | | } |