|
|
|
|
@ -6,6 +6,8 @@ import com.flossom.common.core.domain.entity.WxInstrumentInstructions;
|
|
|
|
|
import com.flossom.common.core.mapper.WxInstrumentInstructionsMapper;
|
|
|
|
|
import com.flossom.common.core.utils.DateUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.flossom.system.service.IWxInstrumentInstructionsService;
|
|
|
|
|
|
|
|
|
|
@ -16,11 +18,15 @@ import com.flossom.system.service.IWxInstrumentInstructionsService;
|
|
|
|
|
* @date 2024-01-16
|
|
|
|
|
*/
|
|
|
|
|
@Service
|
|
|
|
|
@RefreshScope
|
|
|
|
|
public class WxInstrumentInstructionsServiceImpl implements IWxInstrumentInstructionsService {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private WxInstrumentInstructionsMapper wxInstrumentInstructionsMapper;
|
|
|
|
|
|
|
|
|
|
@Value("${instruction.domain}")
|
|
|
|
|
private String instructionDomain;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询仪器说明书
|
|
|
|
|
*
|
|
|
|
|
@ -40,7 +46,15 @@ public class WxInstrumentInstructionsServiceImpl implements IWxInstrumentInstruc
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public List<WxInstrumentInstructions> selectWxInstrumentInstructionsList(WxInstrumentInstructions wxInstrumentInstructions) {
|
|
|
|
|
return wxInstrumentInstructionsMapper.selectWxInstrumentInstructionsList(wxInstrumentInstructions);
|
|
|
|
|
List<WxInstrumentInstructions> instructionList = wxInstrumentInstructionsMapper.selectWxInstrumentInstructionsList(wxInstrumentInstructions);
|
|
|
|
|
if (instructionList != null && instructionList.size() > 0) {
|
|
|
|
|
for (WxInstrumentInstructions instrumentInstructions : instructionList) {
|
|
|
|
|
StringBuffer url = new StringBuffer(instructionDomain);
|
|
|
|
|
StringBuffer nameUrl = url.append("/book?type=").append(instrumentInstructions.getName()).append("&id=").append(instrumentInstructions.getInstrumentId());
|
|
|
|
|
instrumentInstructions.setNameUrl(nameUrl.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return instructionList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|