Merge branch 'master' of ssh://git.jizhiweb.cn:2222/clinic-v2/server
This commit is contained in:
commit
a605733038
|
|
@ -11,6 +11,7 @@ public @interface ApiParam {
|
||||||
String name();
|
String name();
|
||||||
String value() default "";
|
String value() default "";
|
||||||
boolean required() default false;
|
boolean required() default false;
|
||||||
|
boolean isArray() default false;
|
||||||
String comment() default "";
|
String comment() default "";
|
||||||
Class<?> type() default Object.class;
|
Class<?> type() default Object.class;
|
||||||
String typeName() default "";
|
String typeName() default "";
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,10 @@ public class DiagnosisController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询患者病历")
|
@ApiOperation("查询患者病历")
|
||||||
@RequestMapping("/listByPatient")
|
@RequestMapping("/listByPatient")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "patientId", value = "患者id", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = MedicalHistoryVo.class,isArray = true)
|
||||||
public Result<List<MedicalHistoryVo>> listByPatient() {
|
public Result<List<MedicalHistoryVo>> listByPatient() {
|
||||||
Integer patientId = parmsUtil.getInteger("patientId", "患者不能为空");
|
Integer patientId = parmsUtil.getInteger("patientId", "患者不能为空");
|
||||||
return success( diagnosisService.listByPatientId(patientId));
|
return success( diagnosisService.listByPatientId(patientId));
|
||||||
|
|
@ -74,6 +78,10 @@ public class DiagnosisController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("根据挂单号回显病历详情")
|
@ApiOperation("根据挂单号回显病历详情")
|
||||||
@RequestMapping("/getByRegisId")
|
@RequestMapping("/getByRegisId")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "regisId", value = "挂单id", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = MedicalRecordVo.class)
|
||||||
public Result<MedicalRecordVo> getByRegisId() {
|
public Result<MedicalRecordVo> getByRegisId() {
|
||||||
Integer regisId = parmsUtil.getInteger("regisId", "挂单id不能为空");
|
Integer regisId = parmsUtil.getInteger("regisId", "挂单id不能为空");
|
||||||
return success(diagnosisService.getDetailByRegisId(regisId));
|
return success(diagnosisService.getDetailByRegisId(regisId));
|
||||||
|
|
@ -83,6 +91,10 @@ public class DiagnosisController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取收费队列")
|
@ApiOperation("获取收费队列")
|
||||||
@RequestMapping("/ChargeQueueList")
|
@RequestMapping("/ChargeQueueList")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "query", value = "查询参数", required = true, type = ChargeQueueQuery.class)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = ChargeQueueVo.class,isPage = true)
|
||||||
public Result<Page<ChargeQueueVo>> ChargeQueueList() {
|
public Result<Page<ChargeQueueVo>> ChargeQueueList() {
|
||||||
ChargeQueueQuery query = parmsUtil.getObject("query", ChargeQueueQuery.class);
|
ChargeQueueQuery query = parmsUtil.getObject("query", ChargeQueueQuery.class);
|
||||||
|
|
||||||
|
|
@ -94,6 +106,10 @@ public class DiagnosisController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取挂号信息")
|
@ApiOperation("获取挂号信息")
|
||||||
@RequestMapping("/getRegistrationDetail")
|
@RequestMapping("/getRegistrationDetail")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "regisId", value = "挂单id", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = SeeDoctorInfoVo.class)
|
||||||
public Result<SeeDoctorInfoVo> getRegistrationDetail() {
|
public Result<SeeDoctorInfoVo> getRegistrationDetail() {
|
||||||
Integer regisId = parmsUtil.getInteger("regisId", "挂单id不能为空");
|
Integer regisId = parmsUtil.getInteger("regisId", "挂单id不能为空");
|
||||||
return success( diagnosisService.getSeeDockerInfo(regisId));
|
return success( diagnosisService.getSeeDockerInfo(regisId));
|
||||||
|
|
@ -104,6 +120,10 @@ public class DiagnosisController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取诊断信息")
|
@ApiOperation("获取诊断信息")
|
||||||
@RequestMapping("/getByDiagnosisCode")
|
@RequestMapping("/getByDiagnosisCode")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "diagnosisCode", value = "诊断code", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = MedicalRecordVo.class)
|
||||||
public Result<MedicalRecordVo> getByDiagnosisCode() {
|
public Result<MedicalRecordVo> getByDiagnosisCode() {
|
||||||
String diagnosisCode = parmsUtil.getString("diagnosisCode", "诊断code不能为空");
|
String diagnosisCode = parmsUtil.getString("diagnosisCode", "诊断code不能为空");
|
||||||
return success( diagnosisService.getByDiagnosisCode(diagnosisCode));
|
return success( diagnosisService.getByDiagnosisCode(diagnosisCode));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
package com.syjiaer.clinic.server.controller.goods;
|
package com.syjiaer.clinic.server.controller.goods;
|
||||||
|
|
||||||
|
import com.syjiaer.clinic.server.common.annotations.ApiParam;
|
||||||
|
import com.syjiaer.clinic.server.common.annotations.ApiParams;
|
||||||
|
import com.syjiaer.clinic.server.common.annotations.ApiReturn;
|
||||||
import com.syjiaer.clinic.server.common.annotations.RecordCommonLog;
|
import com.syjiaer.clinic.server.common.annotations.RecordCommonLog;
|
||||||
import com.syjiaer.clinic.server.common.vo.Result;
|
import com.syjiaer.clinic.server.common.vo.Result;
|
||||||
import com.syjiaer.clinic.server.controller.BaseController;
|
import com.syjiaer.clinic.server.controller.BaseController;
|
||||||
|
|
@ -35,6 +38,10 @@ public class GoodsCateController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("根据type获取商品二级分类列表")
|
@ApiOperation("根据type获取商品二级分类列表")
|
||||||
@RequestMapping("list")
|
@RequestMapping("list")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "type", value = "商品一级类型", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(type = GoodsCate.class,isArray = true)
|
||||||
public Result<List<GoodsCate>> list(){
|
public Result<List<GoodsCate>> list(){
|
||||||
int type= parmsUtil.getInteger("type","类型不能为空");
|
int type= parmsUtil.getInteger("type","类型不能为空");
|
||||||
List<GoodsCate> list=goodsCateService.listByType(type);
|
List<GoodsCate> list=goodsCateService.listByType(type);
|
||||||
|
|
@ -46,6 +53,7 @@ public class GoodsCateController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取所有分类")
|
@ApiOperation("获取所有分类")
|
||||||
@RequestMapping("getAllList")
|
@RequestMapping("getAllList")
|
||||||
|
@ApiReturn(type = GoodsCate.class)
|
||||||
public Result<Map<Integer,List<GoodsCate>>> getAllList(){
|
public Result<Map<Integer,List<GoodsCate>>> getAllList(){
|
||||||
Map<Integer,List<GoodsCate>> resultMap=goodsCateService.listAll();
|
Map<Integer,List<GoodsCate>> resultMap=goodsCateService.listAll();
|
||||||
return success(resultMap);
|
return success(resultMap);
|
||||||
|
|
@ -57,6 +65,10 @@ public class GoodsCateController extends BaseController {
|
||||||
@ApiOperation("删除二级分类")
|
@ApiOperation("删除二级分类")
|
||||||
@RecordCommonLog(operation = "删除分类")
|
@RecordCommonLog(operation = "删除分类")
|
||||||
@RequestMapping("del")
|
@RequestMapping("del")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "id", value = "分类id", required = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(isNull = true)
|
||||||
public Result del(){
|
public Result del(){
|
||||||
Integer id= parmsUtil.getInteger("id","id不能为空");
|
Integer id= parmsUtil.getInteger("id","id不能为空");
|
||||||
goodsCateService.del(id);
|
goodsCateService.del(id);
|
||||||
|
|
@ -70,6 +82,10 @@ public class GoodsCateController extends BaseController {
|
||||||
@ApiOperation("保存二级分类")
|
@ApiOperation("保存二级分类")
|
||||||
@RecordCommonLog(operation = "保存分类")
|
@RecordCommonLog(operation = "保存分类")
|
||||||
@RequestMapping("save")
|
@RequestMapping("save")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "cateList", value = "分类列表", required = true, type = GoodsCate.class,isArray = true)
|
||||||
|
})
|
||||||
|
@ApiReturn(isNull = true)
|
||||||
public Result save(){
|
public Result save(){
|
||||||
List<GoodsCate> cateList = parmsUtil.getList("cateList", GoodsCate.class);
|
List<GoodsCate> cateList = parmsUtil.getList("cateList", GoodsCate.class);
|
||||||
goodsCateService.save(cateList);
|
goodsCateService.save(cateList);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.syjiaer.clinic.server.controller.goods;
|
package com.syjiaer.clinic.server.controller.goods;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.syjiaer.clinic.server.common.annotations.ApiParam;
|
||||||
|
import com.syjiaer.clinic.server.common.annotations.ApiParams;
|
||||||
import com.syjiaer.clinic.server.common.annotations.RecordCommonLog;
|
import com.syjiaer.clinic.server.common.annotations.RecordCommonLog;
|
||||||
import com.syjiaer.clinic.server.common.enums.GoodsPricingModelEnum;
|
import com.syjiaer.clinic.server.common.enums.GoodsPricingModelEnum;
|
||||||
import com.syjiaer.clinic.server.common.util.ParmsUtil;
|
import com.syjiaer.clinic.server.common.util.ParmsUtil;
|
||||||
|
|
@ -43,9 +45,11 @@ public class GoodsController extends BaseController {
|
||||||
@RecordCommonLog(operation = "商品建档或修改")
|
@RecordCommonLog(operation = "商品建档或修改")
|
||||||
@ApiOperation("商品建档或修改")
|
@ApiOperation("商品建档或修改")
|
||||||
@RequestMapping("save")
|
@RequestMapping("save")
|
||||||
|
@ApiParams({
|
||||||
|
@ApiParam(name = "data", value = "商品信息", required = true, type = Goods.class)
|
||||||
|
})
|
||||||
public Result<Object> save() {
|
public Result<Object> save() {
|
||||||
|
Goods goods=parmsUtil.getObject("data", Goods.class);
|
||||||
Goods goods = JSONObject.parseObject(JSONObject.toJSONString(parmsUtil.getMap()), Goods.class);
|
|
||||||
if (goods.getPurchaseUnitPrice()==null) {
|
if (goods.getPurchaseUnitPrice()==null) {
|
||||||
return error("请输入参考进价");
|
return error("请输入参考进价");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue