医院版本

This commit is contained in:
zhuchunyun 2025-07-28 10:57:55 +08:00
parent a5f5cad170
commit 8c6f3ac99e
8 changed files with 26 additions and 27 deletions

View File

@ -43,7 +43,6 @@ public class PatientScriptController extends BaseController {
*/
@GetMapping("/list")
public TableDataInfo selectAll(PatientScript patientScript) {
patientScript.setIsAll("1");
startPage();
List<PatientScript> list = patientScriptService.selectList(patientScript);
return getDataTable(list);

View File

@ -38,7 +38,7 @@ public class PatientScriptController2 extends BaseController {
*/
@GetMapping("/list")
public TableDataInfo selectAll(PatientScript patientScript) {
patientScript.setIsAll("0");
startPage();
List<PatientScript> list = patientScriptService.selectList(patientScript);
return getDataTable(list);
@ -52,7 +52,7 @@ public class PatientScriptController2 extends BaseController {
*/
@PostMapping("/add")
public AjaxResult insert(@RequestBody PatientScript patientScript) throws IOException, InterruptedException, TemplateException {
patientScript.setIsAll("0");
return toAjax(this.patientScriptService.save(patientScript));
}

View File

@ -688,7 +688,6 @@ public class PatientScriptServiceImpl implements PatientScriptService {
@Override
public Boolean saveBatch(List<PatientScript> patientScripts) {
for (PatientScript patientScript : patientScripts) {
patientScript.setIsAll("1");
patientScript.setStatus("待生成");
patientScript.setCreateId(SecurityUtils.getUserId());
patientScript.setCreateTime(new Date());
@ -707,16 +706,16 @@ public class PatientScriptServiceImpl implements PatientScriptService {
if (CollectionUtil.isNotEmpty(patientScripts)){
return;
}
PatientScript patientScript3 =new PatientScript();
patientScript3.setStatus("生成异常");
patientScript3.setType("noDti");
List<PatientScript> patientScriptList3 = scriptMapper.selectList(patientScript3);
//获取最后一个
if (CollectionUtil.isNotEmpty(patientScriptList3)){
PatientScript patientScript1 = patientScriptList3.get(patientScriptList3.size() - 1);
this.save(patientScript1);
return;
}
// PatientScript patientScript3 =new PatientScript();
// patientScript3.setStatus("生成异常");
// patientScript3.setType("noDti");
// List<PatientScript> patientScriptList3 = scriptMapper.selectList(patientScript3);
// //获取最后一个
// if (CollectionUtil.isNotEmpty(patientScriptList3)){
// PatientScript patientScript1 = patientScriptList3.get(patientScriptList3.size() - 1);
// this.save(patientScript1);
// return;
// }
PatientScript patientScript2 =new PatientScript();
patientScript2.setStatus("待生成");
patientScript2.setType("noDti");
@ -1152,6 +1151,7 @@ public class PatientScriptServiceImpl implements PatientScriptService {
if(StringUtils.isNotEmpty(mriInfo.getBrainInfo())){
if (classMap.containsKey(mriInfo.getBrainStr())){
classMap.put(mriInfo.getBrainStr(),classMap.get(mriInfo.getBrainInfo())+1);
msgList.add(mriInfo.getValue());
}else {
classMap.put(mriInfo.getBrainStr(),1);
@ -1332,7 +1332,7 @@ public class PatientScriptServiceImpl implements PatientScriptService {
//创建处理数据脚本
createDtiFile(shMap, dealDataSh,"dealData_dti.ftl");
//创建图片生成脚本
createDtiFile(shMap, imgPath,"imgSh_dti.ftl");
createDtiFile(shMap, imgPath,"img_dti.ftl");
//创建路径
File folder = new File(fmriOutPath);
if (!folder.exists()) { // 检查文件夹是否已存在

View File

@ -7,12 +7,12 @@ spring:
# 主库数据源
master:
url: jdbc:mysql://127.0.0.1:3306/asd-project?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
# username: root
# password: 123456
## url: jdbc:mysql://81.70.190.166:3306/asd-project?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
## url: jdbc:mysql://81.70.190.166:3306/asd-project?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: mysqlRoot
# password: QQzcy@1014
username: mysqlRoot
password: QQzcy@1014
# 从库数据源
# slave:
# # 从数据源开关/默认关闭

View File

@ -6,5 +6,5 @@ VUE_APP_TITLE = 孤独症辅助诊断评估系统
ENV = 'production'
# ASD小程序管理系统/生产环境
VUE_APP_BASE_API = 'https://www.jieyi-autism.com/asdProject'
VUE_APP_BASE_API = 'http://192.168.1.75:8082/asdProject'
#VUE_APP_BASE_API = 'http://192.168.1.71:8082/asdProject'

View File

@ -236,7 +236,7 @@ export default {
//
form: [
{
patientSex: '',
patientSex: '',
scanTime: ''
}
],
@ -287,7 +287,7 @@ export default {
reset() {
this.form = [
{
patientSex: '',
patientSex: '',
scanTime: ''
}
];
@ -412,7 +412,7 @@ export default {
},
addItem() {
this.form.push({
patientSex: '',
patientSex: '',
scanTime: ''
});
},

View File

@ -236,7 +236,7 @@ export default {
//
form: [
{
patientSex: '',
patientSex: '',
scanTime: ''
}
],
@ -287,7 +287,7 @@ export default {
reset() {
this.form = [
{
patientSex: '',
patientSex: '',
scanTime: ''
}
];
@ -412,7 +412,7 @@ export default {
},
addItem() {
this.form.push({
patientSex: '',
patientSex: '',
scanTime: ''
});
},

View File

@ -7,4 +7,4 @@ ENV = 'production'
# ASD小程序管理系统/生产环境
#VUE_APP_BASE_API = 'https://www.jieyi-autism.com/asdProject'
VUE_APP_BASE_API = 'http://192.168.1.71:8082/asdProject'
VUE_APP_BASE_API = 'http://192.168.1.75:8082/asdProject'