feat: 优化

v3
chenhc 4 months ago
parent 4c61a8e4e6
commit daffb56657

@ -39,7 +39,8 @@ public class ThirdAliDrugController {
if (StrUtil.isEmpty(thirdAliDrug.getApprovalNum()) && StrUtil.isEmpty(thirdAliDrug.getNameCode()) && if (StrUtil.isEmpty(thirdAliDrug.getApprovalNum()) && StrUtil.isEmpty(thirdAliDrug.getNameCode()) &&
StrUtil.isEmpty(thirdAliDrug.getCpmctymc()) StrUtil.isEmpty(thirdAliDrug.getCpmctymc())&&
StrUtil.isEmpty(thirdAliDrug.getManufacturer())
) { ) {
return ResultVOUtils.success("查询参数不能为空"); return ResultVOUtils.success("查询参数不能为空");
} }

@ -91,6 +91,9 @@
<if test="approvalNum != '' and approvalNum != null"> <if test="approvalNum != '' and approvalNum != null">
AND approvalNum = #{approvalNum} AND approvalNum = #{approvalNum}
</if> </if>
<if test="manufacturer != '' and manufacturer != null">
AND manufacturer = #{manufacturer}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save